From efbc08e537e26dde5f1bd98de4f8608ad6e81501 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 12 Oct 2013 11:14:07 +0000 Subject: 2816: {strip} removes too much things, fixed again for smarty 3 git-svn-id: http://piwigo.org/svn/trunk@24877 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/smarty/libs/sysplugins/smarty_internal_templateparser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/smarty') diff --git a/include/smarty/libs/sysplugins/smarty_internal_templateparser.php b/include/smarty/libs/sysplugins/smarty_internal_templateparser.php index d67be6e6f..b0393c694 100644 --- a/include/smarty/libs/sysplugins/smarty_internal_templateparser.php +++ b/include/smarty/libs/sysplugins/smarty_internal_templateparser.php @@ -2272,7 +2272,7 @@ static public $yy_action = array( #line 220 "smarty_internal_templateparser.y" function yy_r11(){ if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor))); + $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor))); } else { $this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)); } @@ -2290,7 +2290,7 @@ static public $yy_action = array( #line 238 "smarty_internal_templateparser.y" function yy_r13(){ if ($this->strip) { - $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor)); + $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', $this->yystack[$this->yyidx + 0]->minor)); } else { $this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor); } -- cgit v1.2.3