From 8ddceef470edc16669317965cee69982ff0c6e35 Mon Sep 17 00:00:00 2001 From: Thomas BrĂ¼derli Date: Tue, 2 Oct 2007 12:34:59 +0000 Subject: Check script length with comment cookie --- itjs.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'itjs.php') diff --git a/itjs.php b/itjs.php index 4e3b89c..95d6c0b 100644 --- a/itjs.php +++ b/itjs.php @@ -44,7 +44,10 @@ if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) header("Cache-Control: max-age=900"); if ($_REQUEST['boot']) - $data .= "window.it_boot_init();"; + { + $data .= "window.it_boot_init();\n"; + $data .= sprintf("/*sln:% 8d*/", strlen($data) + 16); + } echo itjs::strip($data); } -- cgit v1.2.3