diff options
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -40,16 +40,11 @@ else if (!ereg('\.html$', $file)) if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) { - if ($_REQUEST['init']) - $data .= "window.it_boot_init();"; - if ($_REQUEST['boot']) - { - $data = itjs::strip($data); - echo itjs::serialize(array('code' => $data, 'len' => strlen($data))); - } - else - echo itjs::strip($data); + $data = preg_replace('/([\xa0-\xff])/e', 'sprintf("\\u%04x", ord("\\1"))', $data) . "window.it_boot_init();"; + + $data = itjs::strip($data); + echo $data; } else header("HTTP/1.0 304 Not Modified"); |