summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorChristian Schneider2011-01-26 16:34:33 +0000
committerChristian Schneider2011-01-26 16:34:33 +0000
commit0716fc1ddaff47bdd7a944d109215f3bcb64103f (patch)
tree474fb1ae0ac96fc21f61e3de57ddc8344460a61e /itjs.php
parentb13746cf4359252f34a68959c3247845b845150b (diff)
downloaditools-0716fc1ddaff47bdd7a944d109215f3bcb64103f.tar.gz
itools-0716fc1ddaff47bdd7a944d109215f3bcb64103f.tar.bz2
itools-0716fc1ddaff47bdd7a944d109215f3bcb64103f.zip
Always fall back to script tag on iOS devices as it does not use cache, fix script fallback (do not use obfuscation for proxies)
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index f8a19a2..fb41ec6 100644
--- a/itjs.php
+++ b/itjs.php
@@ -70,7 +70,8 @@ if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH'])
if ($_REQUEST['boot'])
{
$data .= "window.it_boot_init();\n";
- $data = sprintf("/*sln:%d*/\n%s/*eln:%d*/", strlen($data), strtr($data, array('%' => "%25", '.' => "%2e", 'e' => "%65", 'i' => "%69")), strlen($data)); # Protect from Firewalls/Proxies altering Javascript source code
+ if (!$_REQUEST['script'])
+ $data = sprintf("/*sln:%d*/\n%s/*eln:%d*/", strlen($data), strtr($data, array('%' => "%25", '.' => "%2e", 'e' => "%65", 'i' => "%69")), strlen($data)); # Protect from Firewalls/Proxies altering Javascript source code
}
echo it_untaint($data);