diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-06-29 19:53:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-06-29 19:53:14 +0000 |
commit | 2c10ff4b5febd8f348febd4a23f3a4fef48f7240 (patch) | |
tree | f8940be8aabec6d563a088ff3737249f6caeeffb /includes/xmlrpcs.inc | |
parent | 9648096e3271f774e7cf821a1827f61bba12385b (diff) | |
download | brdo-2c10ff4b5febd8f348febd4a23f3a4fef48f7240.tar.gz brdo-2c10ff4b5febd8f348febd4a23f3a4fef48f7240.tar.bz2 |
- Fixed problems with filter formats and problem with XML-RPC server.
Diffstat (limited to 'includes/xmlrpcs.inc')
-rw-r--r-- | includes/xmlrpcs.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index c98e5dd51..6c1fe80aa 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -246,7 +246,7 @@ class xmlrpc_server { for($i=0; $i<sizeof($_xh[$parser]['params']); $i++) { //print "<!-- " . $_xh[$parser]['params'][$i]. "-->\n"; $plist.="$i - " . $_xh[$parser]['params'][$i]. " \n"; - eval('$m->addParam(' . $_xh[$parser]['params'][$i]. ");"); + $m->addParam(eval('return '. $_xh[$parser]['params'][$i] .';')); } // uncomment this to really see what the server's getting! // xmlrpc_debugmsg($plist); @@ -265,13 +265,12 @@ class xmlrpc_server { } if ( (!isset($dmap[$methName]['signature'])) || $sr[0]) { + $f = $dmap[$methName]['function']; // if no signature or correct signature if ($sysCall) { - eval('$r=' . $dmap[$methName]['function'] . - '($this, $m);'); + $r = $f($this, $m); } else { - eval('$r=' . $dmap[$methName]['function'] . - '($m);'); + $r = $f($m); } } else { $r=new xmlrpcresp(0, |