From c2d2fb73095a32394dd95e72421aec49fa2cd6f6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 May 2003 18:36:38 +0000 Subject: - Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski. - Fixed a typo in the MSSQL database scheme. Patch by Michael Frankowski. - Removed dependency on "register_globals = on"! Patches by Michael Frankowski. Notes: + Updated the patches to use $foo["bar"] instead of $foo['bar']. + Updated the INSTALL and CHANGELOG files as well. - Tiny improvement to the "./scripts/code-clean.sh" script. --- includes/xmlrpcs.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'includes/xmlrpcs.inc') diff --git a/includes/xmlrpcs.inc b/includes/xmlrpcs.inc index 61ce1913c..7e61d8771 100644 --- a/includes/xmlrpcs.inc +++ b/includes/xmlrpcs.inc @@ -148,7 +148,6 @@ class xmlrpc_server { var $dmap=array(); function xmlrpc_server($dispMap, $serviceNow=1) { - global $HTTP_RAW_POST_DATA; // dispMap is a despatch array of methods // mapped to function names and signatures // if a method @@ -208,14 +207,14 @@ class xmlrpc_server { } function parseRequest($data="") { - global $_xh,$HTTP_RAW_POST_DATA; + global $_xh; global $xmlrpcerr, $xmlrpcstr, $xmlrpcerrxml, $xmlrpc_defencoding, $_xmlrpcs_dmap; if ($data=="") { - $data=$HTTP_RAW_POST_DATA; + $data=$_SERVER["HTTP_RAW_POST_DATA"]; } $parser = xml_parser_create($xmlrpc_defencoding); @@ -291,13 +290,12 @@ class xmlrpc_server { } function echoInput() { - global $HTTP_RAW_POST_DATA; // a debugging routine: just echos back the input // packet as a string value $r=new xmlrpcresp; - $r->xv=new xmlrpcval( "'Aha said I: '" . $HTTP_RAW_POST_DATA, "string"); + $r->xv=new xmlrpcval( "'Aha said I: '" . $_SERVER["HTTP_RAW_POST_DATA"], "string"); print $r->serialize(); } } -- cgit v1.2.3