diff --git a/change_log.txt b/change_log.txt index 70cd842f..15e81976 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== trunk ===== +08.04.2012 +- bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364) + 30.03.2012 - bugfix template inheritance did not throw exception when a parent template was deleted (issue 90) diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index 51a8ce81..4cd31183 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -568,7 +568,7 @@ abstract class Smarty_Internal_TemplateCompilerBase { ($this->nocache || $this->tag_nocache || $this->forceNocache == 2)) { $this->template->has_nocache_code = true; $_output = str_replace("'", "\'", $content); - $_output = str_replace('\\\\', '\\\\\\', $_output); + $_output = str_replace('\\\\', '\\\\\\\\', $_output); $_output = str_replace("^#^", "'", $_output); $_output = "nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n"; // make sure we include modifer plugins for nocache code