mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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:
parent
ed69875649
commit
b7b8bf3857
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue