Fixed: oops, forgot ASP-like tags

Fixed: <?! was not escaped, despite being valid PHP
(cvstats++)


git-svn-id: file:///svn/phpbb/trunk@6207 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud 2006-07-23 22:38:27 +00:00
parent ed69875649
commit b7b8bf3857

View file

@ -105,8 +105,8 @@ class template_compile
{ {
$match = array( $match = array(
'\\?php[\n\r\s\t]+', '\\?php[\n\r\s\t]+',
'\\?=', '[\\?%]=',
'\\?[\n\r\s\t]', '[\\?%][^\w]',
'script[\n\r\s\t]+language[\n\r\s\t]*=[\n\r\s\t]*[\'"]php[\'"]' 'script[\n\r\s\t]+language[\n\r\s\t]*=[\n\r\s\t]*[\'"]php[\'"]'
); );
@ -174,7 +174,7 @@ class template_compile
$code = preg_replace($match_php_tags, '', $code); $code = preg_replace($match_php_tags, '', $code);
*/ */
// An alternative to the above would be calling this function which would be the ultimate solution but also has it's drawbacks. // An alternative to the above would be calling this function which would be the ultimate solution but also has its drawbacks.
$this->remove_php_tags($code); $this->remove_php_tags($code);
// Pull out all block/statement level elements and seperate plain text // Pull out all block/statement level elements and seperate plain text