diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2006-07-23 22:38:27 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2006-07-23 22:38:27 +0000 |
commit | b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209 (patch) | |
tree | fd53ac571fd2f4e57e4ae519aa70cec5d9998d0c /phpBB/includes | |
parent | ed69875649303564671deba54a8ffc1fe3edd9ec (diff) | |
download | forums-b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209.tar forums-b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209.tar.gz forums-b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209.tar.bz2 forums-b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209.tar.xz forums-b7b8bf385741ab8c8a7ddfb4d3e5207e1a8db209.zip |
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
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 9ced5273ef..7f29c2a040 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -105,8 +105,8 @@ class template_compile { $match = array( '\\?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[\'"]' ); @@ -174,7 +174,7 @@ class template_compile $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); // Pull out all block/statement level elements and seperate plain text |