diff options
author | Urban Müller | 2014-10-22 16:40:51 +0200 |
---|---|---|
committer | Urban Müller | 2014-10-22 16:40:51 +0200 |
commit | cb9e12bd553bbbd9fd0687de73735177edd19a64 (patch) | |
tree | 18b08de6e8884a38828dd0ff94f9ed25af2b4e37 | |
parent | 4eca72275e2624f86f4ad40cc0a17ce1624419c2 (diff) | |
download | itools-cb9e12bd553bbbd9fd0687de73735177edd19a64.tar.gz itools-cb9e12bd553bbbd9fd0687de73735177edd19a64.tar.bz2 itools-cb9e12bd553bbbd9fd0687de73735177edd19a64.zip |
refuse to work from /www/server
-rw-r--r-- | itjs.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |