aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_template.php3
1 files changed, 1 insertions, 2 deletions
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',
'#<script\s+language\s*=\s*(["\']?)php\1\s*>.*?</script\s*>#s',
'#<\?php(?:\r\n?|[ \n\t]).*?\?>#s'
);