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/setup/config.php

    r328 r5773  
    6565 
    6666        /* Following to ensure windows file paths are saved correctly */ 
    67         set_magic_quotes_runtime(0); 
     67        magic_quotes_runtime(0); 
    6868 
    6969        $GLOBALS['phpgw_setup']->loaddb(); 
     
    112112                        /* echo '<br>Updating: ' . $setting . '=' . $value; */ 
    113113                        /* Don't erase passwords, since we also do not print them below */ 
    114                         if($value || (!ereg('passwd',$setting) && !ereg('password',$setting) && !ereg('root_pw',$setting))) 
     114                        if($value || (!preg_match('/passwd/',$setting) && !preg_match('/password/',$setting) && !preg_match('/root_pw/',$setting))) 
    115115                        { 
    116116                                @$GLOBALS['phpgw_setup']->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'"); 
Note: See TracChangeset for help on using the changeset viewer.