From 1a413655f0b1b717d568b165c5b72e14575b75f9 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Wed, 8 Aug 2007 14:54:51 +0000 Subject: Updated it_boot --- itjs.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'itjs.php') 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"); -- cgit v1.2.3