diff options
author | mistic100 <mistic@piwigo.org> | 2012-12-26 11:35:40 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2012-12-26 11:35:40 +0000 |
commit | 9cc816d364057828cecc26dc1432448a57f261e9 (patch) | |
tree | 9987060f41c7278e8b0ed80cf45d52dadc4bd323 /include/smarty/libs/Smarty_Compiler.class.php | |
parent | 8188973b0c87e7b8568325c603379239d2375ab0 (diff) |
feature 2816: {strip} smarty tag can introduce bugs in javascript + fix picture.tpl
git-svn-id: http://piwigo.org/svn/trunk@19575 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/smarty/libs/Smarty_Compiler.class.php')
-rw-r--r-- | include/smarty/libs/Smarty_Compiler.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/smarty/libs/Smarty_Compiler.class.php b/include/smarty/libs/Smarty_Compiler.class.php index 1178b84d0..62a467bea 100644 --- a/include/smarty/libs/Smarty_Compiler.class.php +++ b/include/smarty/libs/Smarty_Compiler.class.php @@ -332,7 +332,7 @@ class Smarty_Compiler extends Smarty { /* strip all $text_blocks before the next '/strip' */ for ($j = $i + 1; $j < $for_max; $j++) { /* remove leading and trailing whitespaces of each line */ - $text_blocks[$j] = preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $text_blocks[$j]); + $text_blocks[$j] = preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', $text_blocks[$j]); if ($compiled_tags[$j] == '{/strip}') { /* remove trailing whitespaces from the last text_block */ $text_blocks[$j] = rtrim($text_blocks[$j]); |