summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-08-27 08:35:43 +0000
committerThomas BrĂ¼derli2007-08-27 08:35:43 +0000
commitb08a2b29fd69cc8f5b22eabc830281f38b821c1b (patch)
tree38700182681351ef6d7c60b6ab07b6514afe6436 /itjs.php
parent1e33a118a88fff5684d388ead9aec3dca7e0bcf6 (diff)
downloaditools-b08a2b29fd69cc8f5b22eabc830281f38b821c1b.tar.gz
itools-b08a2b29fd69cc8f5b22eabc830281f38b821c1b.tar.bz2
itools-b08a2b29fd69cc8f5b22eabc830281f38b821c1b.zip
Encode all non-ascii chars in js data
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 5c23b4a..d8932ed 100644
--- a/itjs.php
+++ b/itjs.php
@@ -43,7 +43,7 @@ if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH'])
header("Cache-Control: max-age=900");
if ($_REQUEST['boot'])
- $data = preg_replace('/([\xa0-\xff])/e', 'sprintf("\\u%04x", ord("\\1"))', $data) . "window.it_boot_init();";
+ $data .= "window.it_boot_init();";
echo itjs::strip($data);
}