Changeset 5913


Ignore:
Timestamp:
04/11/12 12:07:11 (12 years ago)
Author:
marcosw
Message:

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

Location:
trunk/phpgwapi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.validator.inc.php

    r2 r5913  
    2929                function has_space ($text) 
    3030                { 
    31                         return ereg("( |\n|\t|\r)+", $text); 
     31                        return preg_match('/( |\n|\t|\r)+/', $text); 
    3232                } 
    3333 
  • trunk/phpgwapi/setup/manageheader.php

    r2 r5913  
    3030         */ 
    3131        $realpath = realpath('..'); 
    32         if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 
     32        if(!preg_match('/^/' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 
    3333        { 
    3434                if(PHP_OS == 'Windows') 
Note: See TracChangeset for help on using the changeset viewer.