From: gggeek Date: Sat, 18 Apr 2015 23:31:44 +0000 (+0100) Subject: Fix: encode entities in remote method names so that client can call LATIN-1 and UTF... X-Git-Tag: 3.0.1~5 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=3d1bcf262c3d7467b5e94cac3c0e3fd3c0563eeb Fix: encode entities in remote method names so that client can call LATIN-1 and UTF-8 named methods --- diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index e5be7f7..117c7b8 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -2176,7 +2176,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha else $this->content_type = 'text/xml'; $this->payload=$this->xml_header($charset_encoding); - $this->payload.='' . $this->methodname . "\n"; + $this->payload.='' . xmlrpc_encode_entitites($this->methodname, $GLOBALS['xmlrpc_internalencoding'], $charset_encoding) . "\n"; $this->payload.="\n"; for($i=0; $iparams); $i++) {