Changeset 5940 for trunk/filemanager


Ignore:
Timestamp:
04/13/12 10:19:53 (12 years ago)
Author:
marcosw
Message:

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

File:
1 edited

Legend:

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

    r5912 r5940  
    227227                                } 
    228228                        } 
    229                         elseif ($this->hostname != "" && preg_match('/^/'.$this->hostname, $string)) 
     229                        elseif ($this->hostname != "" && preg_match("/^$this->hostname/", $string)) 
    230230//                      elseif (ereg ('^'.$this->hostname, $string)) 
    231231                        { 
    232                                 $rstring = ereg_replace ('^'.$this->hostname.'/', '', $string); 
    233                                 $rstring = preg_replace ("/(.*)(\/|$)/Ue", "rawurlencode (base64_encode ('\\1')) . '\\2'", $rstring); 
     232                                $rstring = preg_replace("/^$this->hostname\//", '', $string); 
     233                                $rstring = preg_replace("/(.*)(\/|$)/Ue", "rawurlencode (base64_encode ('\\1')) . '\\2'", $rstring); 
    234234                                $rstring = $this->hostname.'/'.$rstring; 
    235235                        } 
Note: See TracChangeset for help on using the changeset viewer.