phpBMS

Changeset 669 for trunk/phpbms/include

Show
Ignore:
Timestamp:
10/23/09 13:43:01 (3 years ago)
Author:
nate
Message:
  • The mysql_pconnect option in the settings.php should be a boolean and not a string. The defaultsettings.php has been changed to show this.
  • "preg" type functions that did not have boundary slashes (/) have been changed to have them.
Location:
trunk/phpbms/include
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/common_functions.php

    r667 r669  
    756756 
    757757                        case "English, US": 
    758                                 $datestring="/".preg_replace(",.","/",$datestring); 
     758                                $datestring="/".preg_replace("/,./","/",$datestring); 
    759759                                $temparray=explode("/",$datestring); 
    760760                                if(count($temparray)==4) 
     
    765765 
    766766                        case "English, UK": 
    767                                 $datestring="/".preg_replace(",.","/",$datestring); 
     767                                $datestring="/".preg_replace("/,./","/",$datestring); 
    768768                                $temparray=explode("/",$datestring); 
    769769                                if(count($temparray)==4) 
     
    774774 
    775775                        case "Dutch, NL": 
    776                                 $datestring="-".preg_replace(",.","-",$datestring); 
     776                                $datestring="-".preg_replace("/,./","-",$datestring); 
    777777                                $temparray=explode("-",$datestring); 
    778778                                if(count($temparray)==4) 
  • trunk/phpbms/include/db.php

    r667 r669  
    556556 
    557557            // need to convert DOS or Mac line breaks 
    558             $line = preg_replace("\r\n$", "\n", $line); 
    559             $line = preg_replace("\r$", "\n", $line); 
     558            $line = preg_replace("/\r\n$/", "\n", $line); 
     559            $line = preg_replace("/\r$/", "\n", $line); 
    560560 
    561561            // ignore comment lines, but only if they are not in quotes 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.