mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed removal of leading/trailing newlines in {strip}-blocks
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
|||||||
|
- fixed removal of leading/trailing newlines in {strip}-blocks (messju)
|
||||||
- fixed proper escaping of " and ' with escape:javascript (messju)
|
- fixed proper escaping of " and ' with escape:javascript (messju)
|
||||||
- fixed bug in traversal of $smarty->plugins_dir-array. now the
|
- fixed bug in traversal of $smarty->plugins_dir-array. now the
|
||||||
first matching plugin is taken (messju)
|
first matching plugin is taken (messju)
|
||||||
|
@@ -335,7 +335,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$strip_tags = $_match[0];
|
$strip_tags = $_match[0];
|
||||||
$_strip_search = array(
|
$_strip_search = array(
|
||||||
'%([^\\\\]\?>)\n%', // remove newlines after PHP close tags
|
'%([^\\\\]\?>)\n%', // remove newlines after PHP close tags
|
||||||
"!{$ldq}/?strip{$rdq}|[\t ]+$|^[\t ]+!m", // remove leading/trailing space chars
|
"!{$ldq}/?strip{$rdq}|\s+$|^\s+!m", // remove leading/trailing space chars
|
||||||
'%[\r\n]+%m', // remove CRs and newlines
|
'%[\r\n]+%m', // remove CRs and newlines
|
||||||
'%([^\\\\]\?>)%'); // replace newlines after PHP close tags
|
'%([^\\\\]\?>)%'); // replace newlines after PHP close tags
|
||||||
$_strip_replace = array(
|
$_strip_replace = array(
|
||||||
|
Reference in New Issue
Block a user