summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorUrban Müller2014-10-22 16:40:51 +0200
committerUrban Müller2014-10-22 16:40:51 +0200
commitcb9e12bd553bbbd9fd0687de73735177edd19a64 (patch)
tree18b08de6e8884a38828dd0ff94f9ed25af2b4e37 /itjs.php
parent4eca72275e2624f86f4ad40cc0a17ce1624419c2 (diff)
downloaditools-cb9e12bd553bbbd9fd0687de73735177edd19a64.tar.gz
itools-cb9e12bd553bbbd9fd0687de73735177edd19a64.tar.bz2
itools-cb9e12bd553bbbd9fd0687de73735177edd19a64.zip
refuse to work from /www/server
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index 0c552b4..1fa675f 100644
--- a/itjs.php
+++ b/itjs.php
@@ -31,6 +31,9 @@ if (false && $crc != "-" && !$_SERVER['HTTP_CACHE_CONTROL'] && $_SERVER['HTTP_IF
exit;
}
+if (it::match('/server/', $GLOBALS['ULTRAHOME']))
+ exit; # useless here. cannot write tempfiles
+
$files = itjs::filenames($_GET['files'] ?: it::match('/itjs/([-a-z0-9_,.]*)', $_SERVER['PHP_SELF']));
$data = itjs::filecontents($files);
$file = end($files);