summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2018-09-01 17:03:50 +0200
committerChristian Schneider2018-09-01 17:03:50 +0200
commit9c3110300c69ab07859318c160154b6d7aa380d1 (patch)
treecef05a2f2b27c3feec6b339b1045f45199948c7b
parentb734904d0a546415a999ebf31ad38bdf400d3c98 (diff)
downloaditools-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.class2
1 files changed, 1 insertions, 1 deletions
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();