diff options
author | Urban Müller | 2018-08-30 18:01:16 +0200 |
---|---|---|
committer | Urban Müller | 2018-08-30 18:01:16 +0200 |
commit | 576f4f19277291424f685f48f5a3c58aa9d1f02e (patch) | |
tree | 638a29b9383f65bca2619e59a1addcf543a9273a | |
parent | d4b951dc86ca967d837d8d972d95c7be218eaf5c (diff) | |
download | itools-576f4f19277291424f685f48f5a3c58aa9d1f02e.tar.gz itools-576f4f19277291424f685f48f5a3c58aa9d1f02e.tar.bz2 itools-576f4f19277291424f685f48f5a3c58aa9d1f02e.zip |
dont add debug code to 404 responses
-rw-r--r-- | itjs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; |