diff options
author | Urban Müller | 2018-08-31 14:02:51 +0200 |
---|---|---|
committer | Urban Müller | 2018-08-31 14:02:51 +0200 |
commit | 2a0597c4290fcf776ad36ec029ad53ee176c8fe1 (patch) | |
tree | 49e94f3bd631912f51e5e95cd510b69989160337 | |
parent | 576f4f19277291424f685f48f5a3c58aa9d1f02e (diff) | |
download | itools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.tar.gz itools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.tar.bz2 itools-2a0597c4290fcf776ad36ec029ad53ee176c8fe1.zip |
warn about sending php source
-rw-r--r-- | itjs.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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']) |