aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-04-25 03:28:10 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-04-25 03:28:10 +0000
commit91925b93d87e5e91fb7c7e88ec6c337c2297a52e (patch)
treec02d6e4444a04a28e1e51526b418f5ff59b37209
parentc57ebe71a9dadf2fd37113cbcd8e56f445af8ec9 (diff)
downloadforums-91925b93d87e5e91fb7c7e88ec6c337c2297a52e.tar
forums-91925b93d87e5e91fb7c7e88ec6c337c2297a52e.tar.gz
forums-91925b93d87e5e91fb7c7e88ec6c337c2297a52e.tar.bz2
forums-91925b93d87e5e91fb7c7e88ec6c337c2297a52e.tar.xz
forums-91925b93d87e5e91fb7c7e88ec6c337c2297a52e.zip
- Bug #1237
git-svn-id: file:///svn/phpbb/trunk@5844 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions_template.php2
1 files changed, 1 insertions, 1 deletions
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]);