mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed handling of strip-tags with non-default delimiters
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- fix handling of strip-tags with non-default delimiters (Mark West, messju)
|
||||
|
||||
Version 2.6.7 (Feb 3, 2005)
|
||||
---------------------------
|
||||
|
||||
|
@@ -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 '';
|
||||
|
Reference in New Issue
Block a user