summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-10-10 14:21:56 +0200
committerUrban Müller2017-10-10 14:21:56 +0200
commitb8e699d2b11f0a75c9aa2dbdd005a063738b6668 (patch)
treeca4679222c2c6c628e4a8c03a8455834e438f94b
parent7d20923534c664bba4e51497d348f3af5c9554d7 (diff)
downloaditools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.tar.gz
itools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.tar.bz2
itools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.zip
prevent warning if files is array
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 5f2a12d..556cde9 100644
--- a/itjs.php
+++ b/itjs.php
@@ -24,7 +24,7 @@ require "itools/itools.lib";
if (EDC('slow' . it::match('\.(css|js)\b', U($_GET))))
sleep(5);
-if (it::match('/server/', $_SERVER['DOCUMENT_ROOT']))
+if (is_array($_GET['files']) || it::match('/server/', $_SERVER['DOCUMENT_ROOT']))
exit; # useless here. cannot write tempfiles
itjs::far_future_headers(); # may exit