- bugfix on single quote inside {function} tag

This commit is contained in:
Uwe.Tews
2009-12-12 11:51:07 +00:00
parent c5f8ceb5e9
commit b2db17992b

View File

@@ -744,7 +744,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
public function createPropertyHeader ()
{
$directory_security = $this->smarty->direct_access_security ? "<?php if(!defined('SMARTY_DIR')) exit('no direct access allowed'); ?>\n" : '';
$properties_string = "<?php \$_smarty_tpl->decodeProperties('" . str_replace("'", '"', (serialize($this->properties))) . "'); ?>\n";
$properties_string = "<?php \$_smarty_tpl->decodeProperties('" . str_replace("'", "\\'", (serialize($this->properties))) . "'); ?>\n";
return $directory_security . $properties_string;
}