- Timestamp:
- 04/11/12 12:07:11 (12 years ago)
- Location:
- trunk/phpgwapi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.validator.inc.php
r2 r5913 29 29 function has_space ($text) 30 30 { 31 return ereg("( |\n|\t|\r)+", $text);31 return preg_match('/( |\n|\t|\r)+/', $text); 32 32 } 33 33 -
trunk/phpgwapi/setup/manageheader.php
r2 r5913 30 30 */ 31 31 $realpath = realpath('..'); 32 if(! ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath))32 if(!preg_match('/^/' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 33 33 { 34 34 if(PHP_OS == 'Windows')
Note: See TracChangeset
for help on using the changeset viewer.