From b2db17992b39dec2f6eed3ee08298dabcea38d0a Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sat, 12 Dec 2009 11:51:07 +0000 Subject: [PATCH] - bugfix on single quote inside {function} tag --- libs/sysplugins/smarty_internal_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index 2da8f0b1..82fa24bd 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -744,7 +744,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase { public function createPropertyHeader () { $directory_security = $this->smarty->direct_access_security ? "\n" : ''; - $properties_string = "decodeProperties('" . str_replace("'", '"', (serialize($this->properties))) . "'); ?>\n"; + $properties_string = "decodeProperties('" . str_replace("'", "\\'", (serialize($this->properties))) . "'); ?>\n"; return $directory_security . $properties_string; }