phpBMS

Show
Ignore:
Timestamp:
01/06/10 17:04:26 (2 years ago)
Author:
brieb
Message:
  • fixed checkunique breaking with uuids and possible SQL injection
  • fixed backslashes in searches
  • fixed mark_as in invoice search commands incorrectly setting value to string 'NULL'
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/search.php

    r702 r720  
    4949        //initialize the object 
    5050        $displayTable->initialize($_GET["id"]); 
    51          
    52         if (isset($passedjoinclause)) $_SESSION["passedjoinclause"] = $passedjoinclause;  
    53         if (isset($passedjoinwhere)) $_SESSION["passedjoinwhere"] = $passedjoinwhere;  
     51 
     52        if (isset($passedjoinclause)) $_SESSION["passedjoinclause"] = $passedjoinclause; 
     53        if (isset($passedjoinwhere)) $_SESSION["passedjoinwhere"] = $passedjoinwhere; 
    5454 
    5555 
     
    121121 
    122122                        }//endif 
    123                          
     123 
    124124                        /** 
    125                           *  If the command is a push command, include tables.php  
     125                          *  If the command is a push command, include tables.php 
    126126                          */ 
    127127                        if(strpos($functionname, ":") !== false) 
    128128                                include("include/tables.php"); 
    129                          
     129 
    130130                        //try to include table specific functions 
    131131                        if(file_exists("modules/".$displayTable->thetabledef["name"]."/include/".$displayTable->thetabledef["maintable"].".php")) 
     
    142142 
    143143                        if(!preg_match("/\:/", $functionname)){ 
    144                                  
     144 
    145145                                if(method_exists($searchFunctions,$functionname)) 
    146146                                        $statusmessage = $searchFunctions->$functionname(); 
    147147                                else 
    148148                                        $statusmessage = "Function ".$functionname." not defined"; 
    149                                          
     149 
    150150                        }else{ 
    151                                  
     151 
    152152                                if(moduleExists("mod:b2d42220-443b-fe74-dbdb-ed2c0968c38c", $phpbms->modules)) 
    153153                                        $statusmessage = $searchFunctions->runPush($therecord["name"]); 
    154                                  
     154 
    155155                        }//end if 
    156156                        break; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.