From 91925b93d87e5e91fb7c7e88ec6c337c2297a52e Mon Sep 17 00:00:00 2001 From: David M Date: Tue, 25 Apr 2006 03:28:10 +0000 Subject: [PATCH] - Bug #1237 git-svn-id: file:///svn/phpbb/trunk@5844 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php index ec573d229e..31b26782a9 100644 --- a/phpBB/includes/functions_template.php +++ b/phpBB/includes/functions_template.php @@ -488,7 +488,7 @@ class template_compile // Are we a string? 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... $match[4] = $this->compile($match[4]);