diff options
author | Christian Schneider | 2018-09-01 17:03:50 +0200 |
---|---|---|
committer | Christian Schneider | 2018-09-01 17:03:50 +0200 |
commit | 9c3110300c69ab07859318c160154b6d7aa380d1 (patch) | |
tree | cef05a2f2b27c3feec6b339b1045f45199948c7b | |
parent | b734904d0a546415a999ebf31ad38bdf400d3c98 (diff) | |
download | itools-9c3110300c69ab07859318c160154b6d7aa380d1.tar.gz itools-9c3110300c69ab07859318c160154b6d7aa380d1.tar.bz2 itools-9c3110300c69ab07859318c160154b6d7aa380d1.zip |
Make sure html files do not contain unparsed php source, e.g. /itjs/state.html
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -159,7 +159,7 @@ static function filecontents($filenames) list($filename, $paramstr) = explode("?", $filename); if ($paramstr) parse_str($paramstr, $_GET); - $result .= it::replace(array('^1$' => ""), it::match('\.(js|css|htc)$', $filename) ? include_once($filename) : (file_exists($filename) ? it::file_get_contents($filename) : it_url::get($filename)), array('utf8' => false)); + $result .= it::replace(array('^1$' => ""), it::match('\.(js|css|htc|html)$', $filename) ? include_once($filename) : (file_exists($filename) ? it::file_get_contents($filename) : it_url::get($filename)), array('utf8' => false)); $_GET = $origget; } $result .= ob_get_clean(); |