mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
08.04.2012
|
||||||
|
- bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364)
|
||||||
|
|
||||||
30.03.2012
|
30.03.2012
|
||||||
- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90)
|
- bugfix template inheritance did not throw exception when a parent template was deleted (issue 90)
|
||||||
|
|
||||||
|
@@ -568,7 +568,7 @@ abstract class Smarty_Internal_TemplateCompilerBase {
|
|||||||
($this->nocache || $this->tag_nocache || $this->forceNocache == 2)) {
|
($this->nocache || $this->tag_nocache || $this->forceNocache == 2)) {
|
||||||
$this->template->has_nocache_code = true;
|
$this->template->has_nocache_code = true;
|
||||||
$_output = str_replace("'", "\'", $content);
|
$_output = str_replace("'", "\'", $content);
|
||||||
$_output = str_replace('\\\\', '\\\\\\', $_output);
|
$_output = str_replace('\\\\', '\\\\\\\\', $_output);
|
||||||
$_output = str_replace("^#^", "'", $_output);
|
$_output = str_replace("^#^", "'", $_output);
|
||||||
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
|
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
|
||||||
// make sure we include modifer plugins for nocache code
|
// make sure we include modifer plugins for nocache code
|
||||||
|
Reference in New Issue
Block a user