Changeset 5912 for trunk/filemanager
- Timestamp:
- 04/11/12 12:04:21 (12 years ago)
- Location:
- trunk/filemanager/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/filemanager/inc/class.bofilemanager.inc.php
r5509 r5912 227 227 } 228 228 } 229 elseif ($this->hostname != "" && ereg('^'.$this->hostname, $string))229 elseif ($this->hostname != "" && preg_match('/^/'.$this->hostname, $string)) 230 230 // elseif (ereg ('^'.$this->hostname, $string)) 231 231 { -
trunk/filemanager/inc/class.vfs_functions.inc.php
r5509 r5912 436 436 $_return[] = array( "error" => $badchar); 437 437 } 438 if( ereg("/", $this->to) || ereg("\\\\", $this->to))438 if(preg_match('/\//', $this->to) || preg_match('/\\\\/', $this->to)) 439 439 { 440 440 $_return[] = array( "error"=> "slashes");
Note: See TracChangeset
for help on using the changeset viewer.