aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-02 16:35:42 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-02 16:35:42 -0500
commitc8d5ec892745f9bfc784cd8f7f632fee4a371ff7 (patch)
treedaf2964270f98f5f1b7ab31df513e6fec4c5de1b /phpBB/phpbb
parent5ddb0ba629e4b31ada931240c661d3f4c43d8676 (diff)
downloadforums-c8d5ec892745f9bfc784cd8f7f632fee4a371ff7.tar
forums-c8d5ec892745f9bfc784cd8f7f632fee4a371ff7.tar.gz
forums-c8d5ec892745f9bfc784cd8f7f632fee4a371ff7.tar.bz2
forums-c8d5ec892745f9bfc784cd8f7f632fee4a371ff7.tar.xz
forums-c8d5ec892745f9bfc784cd8f7f632fee4a371ff7.zip
[ticket/11812] Fix empty define
PHPBB3-11812
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/template/twig/lexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/twig/lexer.php b/phpBB/phpbb/template/twig/lexer.php
index a33de70d69..7ab569313c 100644
--- a/phpBB/phpbb/template/twig/lexer.php
+++ b/phpBB/phpbb/template/twig/lexer.php
@@ -130,7 +130,7 @@ class phpbb_template_twig_lexer extends Twig_Lexer
// E.g. 'asdf'"' -> asdf'"
// E.g. "asdf'"" -> asdf'"
// E.g. 'asdf'" -> 'asdf'"
- $matches[2] = preg_replace('#^([\'"])?(.+?)\1$#', '$2', $matches[2]);
+ $matches[2] = preg_replace('#^([\'"])?(.*?)\1$#', '$2', $matches[2]);
// Replace template variables with start/end to parse variables (' ~ TEST ~ '.html)
$matches[2] = preg_replace('#{([a-zA-Z0-9_\.$]+)}#', "'~ \$1 ~'", $matches[2]);