* If an object is created WITHOUT an active AJAX query, it is simply marked as
* non-active. Use statuc method isActive() to check.
*/
- function JsHttpRequest($enc)
+ function __construct($enc)
{
global $JsHttpRequest_Active;
if ($this->SCRIPT_DECODE_MODE == 'entities')
return str_replace(array('"', '<', '>'), array('"', '<', '>'), $s);
else
- return htmlspecialchars($s);
+ return html_specials_encode($s);
}