diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index 4fecd0737e..fa93df7318 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -105,8 +105,7 @@ class template_compile { // This matches the information gathered from the internal PHP lexer $match = array( - '#<\?.*?\?>#s', - '#<[%?]=.*?\?>#s', + '#<([\?%])=?.*?\1>#s', '#.*?#s', '#<\?php(?:\r\n?|[ \n\t]).*?\?>#s' );