From cb9e12bd553bbbd9fd0687de73735177edd19a64 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 22 Oct 2014 16:40:51 +0200 Subject: refuse to work from /www/server --- itjs.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'itjs.php') 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); -- cgit v1.2.3