phpBMS

Show
Ignore:
Timestamp:
01/07/10 12:45:17 (2 years ago)
Author:
brieb
Message:
  • Fixed possible security loopholes in search screen (SQL Manipulation)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/loadsearch.php

    r726 r728  
    249249                                    </p> 
    250250                                    <p> 
    251                                             <textarea id="LSSQL" rows="8" cols="10" <?php if(!hasRights($tableinfo["advsearchroleid"])) echo " readonly=\"readonly\""?>></textarea> 
     251                                            <textarea id="LSSQL" name="LSSQL" rows="8" cols="10" <?php if(!hasRights($tableinfo["advsearchroleid"])) echo ' readonly="readonly"'?>></textarea> 
    252252                                    </p> 
    253253                            </td> 
    254254                            <td valign="top"> 
    255                                     <p><br/><input id="LSLoad" type="button" onclick="LSRunSearch()" class="Buttons" disabled="disabled" value="run search"/></p> 
     255                                    <p><br/><input id="LSLoad" type="submit" name="command" class="Buttons" disabled="disabled" value="run search"/></p> 
    256256                                    <p><input id="LSDelete" type="button" onclick="LSDeleteSearch('<?php echo APP_PATH ?>')" class="Buttons" disabled="disabled" value="delete"/></p> 
    257257                                    <div id="LSResults">&nbsp;</div> 
     
    270270if(isset($_GET["cmd"])){ 
    271271 
     272    require_once("include/session.php"); 
     273 
    272274    $thesearch = new savedSearch($db); 
    273275 
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.