mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
- bugfix nofilter tag option did not disable default modifier
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
05.10.2011
|
05.10.2011
|
||||||
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
|
||||||
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45)
|
- add environment configuration issue with mbstring.func_overload Smarty cannot compensate for (Issue #45)
|
||||||
|
- bugfix nofilter tag option did not disable default modifier
|
||||||
|
|
||||||
04.10.2011
|
04.10.2011
|
||||||
- bugfix assign() in plugins called in subtemplates did change value also in parent template
|
- bugfix assign() in plugins called in subtemplates did change value also in parent template
|
||||||
|
@@ -64,6 +64,7 @@ class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_C
|
|||||||
if (!empty($parameter['modifierlist'])) {
|
if (!empty($parameter['modifierlist'])) {
|
||||||
$output = $compiler->compileTag('private_modifier', array(), array('modifierlist' => $parameter['modifierlist'], 'value' => $output));
|
$output = $compiler->compileTag('private_modifier', array(), array('modifierlist' => $parameter['modifierlist'], 'value' => $output));
|
||||||
}
|
}
|
||||||
|
if (!$_attr['nofilter']) {
|
||||||
// default modifier
|
// default modifier
|
||||||
if (!empty($compiler->smarty->default_modifiers)) {
|
if (!empty($compiler->smarty->default_modifiers)) {
|
||||||
if (empty($compiler->default_modifier_list)) {
|
if (empty($compiler->default_modifier_list)) {
|
||||||
@@ -80,7 +81,6 @@ class Smarty_Internal_Compile_Private_Print_Expression extends Smarty_Internal_C
|
|||||||
}
|
}
|
||||||
$output = $compiler->compileTag('private_modifier', array(), array('modifierlist' => $compiler->default_modifier_list, 'value' => $output));
|
$output = $compiler->compileTag('private_modifier', array(), array('modifierlist' => $compiler->default_modifier_list, 'value' => $output));
|
||||||
}
|
}
|
||||||
if (!$_attr['nofilter']) {
|
|
||||||
// autoescape html
|
// autoescape html
|
||||||
if ($compiler->template->smarty->escape_html) {
|
if ($compiler->template->smarty->escape_html) {
|
||||||
$output = "htmlspecialchars({$output}, ENT_QUOTES, SMARTY_RESOURCE_CHAR_SET)";
|
$output = "htmlspecialchars({$output}, ENT_QUOTES, SMARTY_RESOURCE_CHAR_SET)";
|
||||||
|
Reference in New Issue
Block a user