Changeset 5928 for trunk/admin


Ignore:
Timestamp:
04/12/12 11:15:33 (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/admin/inc/class.uiaccounts.inc.php

    r2 r5928  
    7474                        { 
    7575                                // limit query to limit characters 
    76                                 if(eregi('^[a-z_0-9]+$',$_POST['query'])) 
     76                                if(preg_match('/^[a-z_0-9]+$/i',$_POST['query'])) 
    7777                                        $GLOBALS['query'] = $_POST['query']; 
    7878                        } 
     
    242242                        { 
    243243                                // limit query to limit characters 
    244                                 if(eregi('^[a-z_0-9]+$',$_REQUEST['query'])) 
     244                                if(preg_match('/^[a-z_0-9]+$/i',$_REQUEST['query'])) 
    245245                                        $GLOBALS['query'] = $_REQUEST['query']; 
    246246                        } 
Note: See TracChangeset for help on using the changeset viewer.