From: gggeek Date: Mon, 26 May 2014 22:16:38 +0000 (+0100) Subject: One more nitpick X-Git-Tag: 4.0.0-alpha^2~212^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ade748bccdd7c80272315b923b5572866edb4e30;p=plcapi.git One more nitpick --- diff --git a/lib/phpxmlrpc.php b/lib/phpxmlrpc.php index fa04f70d..8fa6684a 100644 --- a/lib/phpxmlrpc.php +++ b/lib/phpxmlrpc.php @@ -46,12 +46,7 @@ class Phpxmlrpc /// These will NOT be present in true ISO-8859-1, but will save the unwary /// windows user from sending junk (though no luck when reciving them...) /* - public $xml_cp1252_Entities'=array(); - for ($i = 128; $i < 160; $i++) - { - $GLOBALS['xml_cp1252_Entities']['in'][] = chr($i); - } - public $xml_cp1252_Entities['out'] = array( + public $xml_cp1252_Entities = array('in' => array(), out' => array( '€', '?', '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', @@ -60,7 +55,7 @@ class Phpxmlrpc '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', '?', 'ž', 'Ÿ' - ); + )); */ public $xmlrpcerr = array( @@ -181,6 +176,11 @@ class Phpxmlrpc $this->xml_iso88591_Entities["in"][] = chr($i); $this->xml_iso88591_Entities["out"][] = "&#{$i};"; } + + /*for ($i = 128; $i < 160; $i++) + { + $this->xml_cp1252_Entities['in'][] = chr($i); + }*/ } /**