summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/itjs.php b/itjs.php
index c1d8604..3cd2f47 100644
--- a/itjs.php
+++ b/itjs.php
@@ -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");