summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2018-08-30 18:01:16 +0200
committerUrban Müller2018-08-30 18:01:16 +0200
commit576f4f19277291424f685f48f5a3c58aa9d1f02e (patch)
tree638a29b9383f65bca2619e59a1addcf543a9273a
parentd4b951dc86ca967d837d8d972d95c7be218eaf5c (diff)
downloaditools-576f4f19277291424f685f48f5a3c58aa9d1f02e.tar.gz
itools-576f4f19277291424f685f48f5a3c58aa9d1f02e.tar.bz2
itools-576f4f19277291424f685f48f5a3c58aa9d1f02e.zip
dont add debug code to 404 responses
-rw-r--r--itjs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index a8305b5..7ff1f4e 100644
--- a/itjs.php
+++ b/itjs.php
@@ -72,7 +72,7 @@ else if (it::match('\.htc$', $lastfile))
{
header("Content-Type: text/x-component");
}
-else if (!it::match('\.html$', $lastfile))
+else if ($files && !it::match('\.html$', $lastfile))
{
header("Content-Type: application/x-javascript; charset=" . (ini_get('default_charset') ?: 'iso-8859-1'));
$data = "window.trace+='i';\n$data\nwindow.trace+='I';\n";