diff options
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,7 +54,7 @@ static function json_headers($p = []) */ static function serialize($values) { - return json_encode($values, JSON_UNESCAPED_UNICODE | (it::is_devel() ? JSON_PRETTY_PRINT : 0)); + return json_encode($values, JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | (it::is_devel() ? JSON_PRETTY_PRINT : 0)); } /** @@ -104,7 +104,7 @@ static function filecontents($filenames) $origget = $_GET; list($filename, $paramstr) = explode("?", $filename); if ($paramstr) - parse_str($paramstr, $_GET); + $_GET = it::parse_str($paramstr); $result .= it::replace(array('^1$' => ""), it::match('\.(js|css|htc|html)$', $filename) ? include_once($filename) : (file_exists($filename) ? it::file_get_contents($filename) : it_url::get($filename)), array('utf8' => false)); $_GET = $origget; } |