Ignore:
Timestamp:
03/21/12 14:00:25 (12 years ago)
Author:
gustavo
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/class.uiconfig.inc.php

    r5328 r5773  
    118118                                        { 
    119119                                                /* don't erase passwords, since we also don't print them */ 
    120                                                 if(!ereg('passwd',$key) && !ereg('password',$key) && !ereg('root_pw',$key) && !ereg('pw',$key)) 
     120                                                if(!preg_match('/passwd/',$key) && !preg_match('/password/',$key) && !preg_match('/root_pw/',$key) && !preg_match('/pw/',$key)) 
    121121                                                { 
    122122                                                        unset($c->config_data[$key]); 
     
    339339                                                $newval = str_replace(' ','_',$newval); 
    340340                                                /* Don't show passwords in the form */ 
    341                                                 if(ereg('passwd',$value) || ereg('password',$value) || ereg('root_pw',$value)) 
     341                                                if(preg_match('/passwd/',$value) || preg_match('/password/',$value) || preg_match('/root_pw/',$value)) 
    342342                                                { 
    343343                                                        $t->set_var($value,''); 
Note: See TracChangeset for help on using the changeset viewer.