From b8e699d2b11f0a75c9aa2dbdd005a063738b6668 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 10 Oct 2017 14:21:56 +0200 Subject: prevent warning if files is array --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3