X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fxmlrpc.inc;h=36ea008d5cb08fe75c5997cbf7451d8f37f5f709;hb=d73188d62049634a0cb0d280de18ee04904e7342;hp=ad41414062b7b41ccd8a1e6a2251bfcadb3c4e30;hpb=5bec95fe331a9e7afceff701458e2998ab299b3e;p=plcapi.git diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index ad41414..36ea008 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -226,6 +226,7 @@ // set to TRUE to enable encoding of php NULL values to instead of $GLOBALS['xmlrpc_null_apache_encoding']=false; + $GLOBALS['xmlrpc_null_apache_encoding_ns']='http://ws.apache.org/xmlrpc/namespaces/extensions'; // used to store state during parsing // quick explanation of components: @@ -2053,7 +2054,14 @@ $this->content_type = 'text/xml; charset=' . $charset_encoding; else $this->content_type = 'text/xml'; - $result = "\n"; + if ($GLOBALS['xmlrpc_null_apache_encoding']) + { + $result = "\n"; + } + else + { + $result = "\n"; + } if($this->errno) { // G. Giunta 2005/2/13: let non-ASCII response messages be tolerated by clients