Changeset 5912 for trunk/filemanager


Ignore:
Timestamp:
04/11/12 12:04:21 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

Location:
trunk/filemanager/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/inc/class.bofilemanager.inc.php

    r5509 r5912  
    227227                                } 
    228228                        } 
    229                         elseif ($this->hostname != "" && ereg('^'.$this->hostname, $string)) 
     229                        elseif ($this->hostname != "" && preg_match('/^/'.$this->hostname, $string)) 
    230230//                      elseif (ereg ('^'.$this->hostname, $string)) 
    231231                        { 
  • trunk/filemanager/inc/class.vfs_functions.inc.php

    r5509 r5912  
    436436                                        $_return[] = array( "error" => $badchar);        
    437437                                } 
    438                                 if(ereg("/", $this->to) || ereg("\\\\", $this->to)) 
     438                                if(preg_match('/\//', $this->to) || preg_match('/\\\\/', $this->to)) 
    439439                                { 
    440440                                        $_return[] = array( "error"=> "slashes"); 
Note: See TracChangeset for help on using the changeset viewer.