diff --git a/phpgwapi/inc/class.xmlrpc_server.inc.php b/phpgwapi/inc/class.xmlrpc_server.inc.php index 65d345dc6f..cc350404b9 100644 --- a/phpgwapi/inc/class.xmlrpc_server.inc.php +++ b/phpgwapi/inc/class.xmlrpc_server.inc.php @@ -288,7 +288,7 @@ //print "\n"; $plist .= "$i - " . $GLOBALS['_xh'][$parser]['params'][$i]. " \n"; $code = '$m->addParam(' . $GLOBALS['_xh'][$parser]['params'][$i] . ');'; - $code = ereg_replace(',,',",'',",$code); + $code = str_replace(',,',",'',",$code); eval($code); } // uncomment this to really see what the server's getting! @@ -373,7 +373,7 @@ if ($sysCall) { $code = '$r=' . $dmap[$methName]['function'] . '($this, $m);'; - $code = ereg_replace(',,',",'',",$code); + $code = str_replace(',,',",'',",$code); eval($code); } else @@ -381,7 +381,7 @@ if (function_exists($dmap[$methName]['function'])) { $code = '$r =' . $dmap[$methName]['function'] . '($m);'; - $code = ereg_replace(',,',",'',",$code); + $code = str_replace(',,',",'',",$code); eval($code); } else diff --git a/phpgwapi/inc/xmlrpc.interop.php b/phpgwapi/inc/xmlrpc.interop.php index 3cf63a26e4..f907000111 100644 --- a/phpgwapi/inc/xmlrpc.interop.php +++ b/phpgwapi/inc/xmlrpc.interop.php @@ -169,8 +169,8 @@ in an alphabetic order.'; { // don't even ask me _why_ these come padded with // hyphens, I couldn't tell you :p - $a=ereg_replace('-', '', $a); - $b=ereg_replace('-', '', $b); + $a = str_replace('-', '', $a); + $b = str_replace('-', '', $b); if ($GLOBALS['agesorter_arr'][$a]==$agesorter[$b]) {