diff options
author | Urban Müller | 2017-10-10 14:21:56 +0200 |
---|---|---|
committer | Urban Müller | 2017-10-10 14:21:56 +0200 |
commit | b8e699d2b11f0a75c9aa2dbdd005a063738b6668 (patch) | |
tree | ca4679222c2c6c628e4a8c03a8455834e438f94b | |
parent | 7d20923534c664bba4e51497d348f3af5c9554d7 (diff) | |
download | itools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.tar.gz itools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.tar.bz2 itools-b8e699d2b11f0a75c9aa2dbdd005a063738b6668.zip |
prevent warning if files is array
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |