aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-08-19 14:36:00 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-08-19 14:36:00 +0000
commit7c595339503af8ba130e8174a281e620b6217826 (patch)
tree5e648d23ff35cc7cb96a1b09e8591182dbf2270b
parentf39eeda2253b6c1ae815692a2ab359e75e4ed49a (diff)
downloadforums-7c595339503af8ba130e8174a281e620b6217826.tar
forums-7c595339503af8ba130e8174a281e620b6217826.tar.gz
forums-7c595339503af8ba130e8174a281e620b6217826.tar.bz2
forums-7c595339503af8ba130e8174a281e620b6217826.tar.xz
forums-7c595339503af8ba130e8174a281e620b6217826.zip
more efficient + fixing an oops
git-svn-id: file:///svn/phpbb/trunk@6303 89ea8834-ac86-4346-8a33-228a782c2dd0
-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'
);