Changeset 5912 for trunk/phpgwapi/inc/xml_functions.inc.php
- Timestamp:
- 04/11/12 12:04:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/xml_functions.inc.php
r5509 r5912 151 151 while($i<sizeof($top)) 152 152 { 153 if ( ereg("^([#a-zA-Z0-9]+);", $top[$i], $regs))153 if (preg_match('/^([#a-zA-Z0-9]+);/', $top[$i], $regs)) 154 154 { 155 155 $op .= ereg_replace("^[#a-zA-Z0-9]+;", … … 178 178 return $GLOBALS['xmlEntities'][strtolower($ent)]; 179 179 } 180 if ( ereg("^#([0-9]+)$", $ent, $regs))180 if (preg_match('/^#([0-9]+)$/', $ent, $regs)) 181 181 { 182 182 return chr($regs[1]); … … 313 313 // we have an I4, INT or a DOUBLE 314 314 // we must check that only 0123456789-.<space> are characters here 315 if (! ereg("^\-?[0123456789 \t\.]+$", $GLOBALS['_xh'][$parser]['ac']))315 if (!preg_match('/^\-?[0123456789 \t\.]+$/', $GLOBALS['_xh'][$parser]['ac'])) 316 316 { 317 317 // TODO: find a better way of throwing an error … … 387 387 function xmlrpc_cd($parser, $data) 388 388 { 389 //if ( ereg("^[\n\r \t]+$", $data)) return;389 //if (preg_match('/^[\n\r \t]+$/', $data)) return; 390 390 // print "adding [${data}]\n"; 391 391 … … 460 460 // return a timet in the localtime, or UTC 461 461 $t=0; 462 if ( ereg("([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})",$idate, $regs))462 if (preg_match('/([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})/',$idate, $regs)) 463 463 { 464 464 if ($utc) … … 590 590 $methName = $m->getParam(0); 591 591 $methName = $methName->scalarval(); 592 if ( ereg("^system\.", $methName))592 if (preg_match('/^system\./', $methName)) 593 593 { 594 594 $dmap = $GLOBALS['_xmlrpcs_dmap']; … … 637 637 $methName = $m->getParam(0); 638 638 $methName = $methName->scalarval(); 639 if ( ereg("^system\.", $methName))639 if (preg_match('/^system\./', $methName)) 640 640 { 641 641 $dmap = $GLOBALS['_xmlrpcs_dmap'];
Note: See TracChangeset
for help on using the changeset viewer.