Ignore:
Timestamp:
04/11/12 17:21:30 (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/phpgwapi/inc/class.vfs_sql.inc.php

    r5164 r5921  
    15221522                                        'relatives'     => array ($f->mask) 
    15231523                                ) == 'Directory')) 
    1524                                 && ereg ("^$f->fake_full_path", $t->fake_full_path) 
     1524                                && preg_match("/^$f->fake_full_path/", $t->fake_full_path) 
    15251525                        ) 
    15261526                        { 
     
    18891889 
    18901890                        /* We don't allow /'s in dir names, of course */ 
    1891                         if (ereg ("/", $p->fake_name)) 
     1891                        if (preg_match('/\//', $p->fake_name)) 
    18921892                        { 
    18931893                                return False; 
     
    24912491                                */ 
    24922492/* 
    2493                                 if (@!ereg ('^' . $file_array['directory'], $p->fake_full_path)) 
     2493                                if (@!preg_match("/^$file_array['directory']/", $p->fake_full_path)) 
    24942494                                { 
    24952495                                        continue; 
Note: See TracChangeset for help on using the changeset viewer.