summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2018-08-31 14:02:51 +0200
committerUrban Müller2018-08-31 14:02:51 +0200
commit2a0597c4290fcf776ad36ec029ad53ee176c8fe1 (patch)
tree49e94f3bd631912f51e5e95cd510b69989160337
parent576f4f19277291424f685f48f5a3c58aa9d1f02e (diff)
downloaditools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.tar.gz
itools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.tar.bz2
itools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.zip
warn about sending php source
-rw-r--r--itjs.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/itjs.php b/itjs.php
index 7ff1f4e..50e2d47 100644
--- a/itjs.php
+++ b/itjs.php
@@ -79,6 +79,9 @@ else if ($files && !it::match('\.html$', $lastfile))
$data .= "\nwindow.it_gotjs = (window.it_gotjs ? window.it_gotjs : '') + '." . it::match('\w+', basename($lastfile)) . "';\n";
}
+if (strpos($data, "<?php") !== false)
+ it::error("sending php source?!");
+
$data = itjs::strip($data);
if ($_REQUEST['boot'])