|
|
@@ -45,7 +45,7 @@ class Zend_XmlRpc_Value_String extends Zend_XmlRpc_Value_Scalar
|
|
|
$this->_type = self::XMLRPC_TYPE_STRING;
|
|
|
|
|
|
// Make sure this value is string and all XML characters are encoded
|
|
|
- $this->_value = $this->_xml_entities($value);
|
|
|
+ $this->_value = $this->_escapeXmlEntities($value);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -56,19 +56,7 @@ class Zend_XmlRpc_Value_String extends Zend_XmlRpc_Value_Scalar
|
|
|
*/
|
|
|
public function getValue()
|
|
|
{
|
|
|
- return html_entity_decode($this->_value, ENT_QUOTES, 'UTF-8');
|
|
|
+ return $this->_decodeXmlEntities($this->_value);
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * Make sure a string will be safe for XML, convert risky characters to HTML entities
|
|
|
- *
|
|
|
- * @param string $str
|
|
|
- * @return string
|
|
|
- */
|
|
|
- private function _xml_entities($str)
|
|
|
- {
|
|
|
- return htmlentities($str, ENT_QUOTES, 'UTF-8');
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|