mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
- bugfix on single quote inside {function} tag
This commit is contained in:
@@ -744,7 +744,7 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
|
|||||||
public function createPropertyHeader ()
|
public function createPropertyHeader ()
|
||||||
{
|
{
|
||||||
$directory_security = $this->smarty->direct_access_security ? "<?php if(!defined('SMARTY_DIR')) exit('no direct access allowed'); ?>\n" : '';
|
$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;
|
return $directory_security . $properties_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user