summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-10-02 12:34:59 +0000
committerThomas BrĂ¼derli2007-10-02 12:34:59 +0000
commit8ddceef470edc16669317965cee69982ff0c6e35 (patch)
tree79ed08cbc8ec8114145407c6cb13e369a337f446 /itjs.php
parentbbaf65234fc69effce584b6e6b89173693ad907a (diff)
downloaditools-8ddceef470edc16669317965cee69982ff0c6e35.tar.gz
itools-8ddceef470edc16669317965cee69982ff0c6e35.tar.bz2
itools-8ddceef470edc16669317965cee69982ff0c6e35.zip
Check script length with comment cookie
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php5
1 files changed, 4 insertions, 1 deletions
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);
}