summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
Diffstat (limited to 'itjs.php')
-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";