mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +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 ()
|
||||
{
|
||||
$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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user