From 1b25005d42ea6acd49cfc95ce44892654d1657f5 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Thu, 29 Dec 2011 18:44:09 +0000 Subject: [PATCH] - bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) --- change_log.txt | 3 ++- libs/sysplugins/smarty_internal_templatecompilerbase.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 568d06e4..5cff860a 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ ===== trunk ===== 29.12.2011 -- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 77562) +- bugfix enable more entropy in Smarty_Internal_Write_File for "more uniqueness" and Cygwin compatibility (Forum Topic 20724) +- bugfix embedded quotes in single quoted strings did not compile correctly in {nocache} sections (Forum Topic 20730) 28.12.2011 - bugfix Smarty's internal header code must be excluded from postfilters (issue 71) diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index a8f4eace..13471b3b 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -561,7 +561,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