From 9c3110300c69ab07859318c160154b6d7aa380d1 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sat, 1 Sep 2018 17:03:50 +0200 Subject: Make sure html files do not contain unparsed php source, e.g. /itjs/state.html --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itjs.class b/itjs.class index ddb9866..9201cc3 100644 --- a/itjs.class +++ b/itjs.class @@ -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(); -- cgit v1.2.3