diff --git a/NEWS b/NEWS index a899359f..f4196009 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fix handling of strip-tags with non-default delimiters (Mark West, messju) + Version 2.6.7 (Feb 3, 2005) --------------------------- diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index bfd88e37..34ba9405 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -529,13 +529,13 @@ class Smarty_Compiler extends Smarty { $this->_pop_tag('strip'); if (--$this->_strip_depth==0) { /* outermost closing {/strip} */ $this->_additional_newline = "\n"; - return $this->left_delimiter.$tag_command.$this->right_delimiter; + return '{' . $tag_command . '}'; } } else { $this->_push_tag('strip'); if ($this->_strip_depth++==0) { /* outermost opening {strip} */ $this->_additional_newline = ""; - return $this->left_delimiter.$tag_command.$this->right_delimiter; + return '{' . $tag_command . '}'; } } return '';