From 576f4f19277291424f685f48f5a3c58aa9d1f02e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 30 Aug 2018 18:01:16 +0200 Subject: dont add debug code to 404 responses --- itjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'itjs.php') 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"; -- cgit v1.2.3