git-svn-id: file:///svn/phpbb/trunk@5844 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-04-25 03:28:10 +00:00
parent c57ebe71a9
commit 91925b93d8

View file

@ -488,7 +488,7 @@ class template_compile
// Are we a string? // Are we a string?
if ($match[3] && $match[5]) if ($match[3] && $match[5])
{ {
$match[4] = addslashes(str_replace(array('\\\'', '\\\\'), array('\'', '\\'), $match[4])); $match[4] = str_replace(array('\\\'', '\\\\', '\''), array('\'', '\\', '\\\''), $match[4]);
// Compile reference, we allow template variables in defines... // Compile reference, we allow template variables in defines...
$match[4] = $this->compile($match[4]); $match[4] = $this->compile($match[4]);