mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
Fixed a problem with $<number> inside strip tags.
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
||||
- fixed a problem with putting $ followed by numbers inside {strip} and
|
||||
{/strip} tags. (Andrei)
|
||||
- fixed Config_File class to allow empty config paths (defaults to current
|
||||
directory). (Andrei)
|
||||
|
||||
|
@@ -141,7 +141,8 @@ class Smarty_Compiler extends Smarty {
|
||||
$strip_tags_modified = preg_replace('![\r\n]+!m', '', $strip_tags_modified);
|
||||
for ($i = 0; $i < count($strip_tags); $i++)
|
||||
$template_compiled = preg_replace("!{$ldq}strip{$rdq}.*?{$ldq}/strip{$rdq}!s",
|
||||
$strip_tags_modified[$i], $template_compiled, 1);
|
||||
$this->quote_replace($strip_tags_modified[$i]),
|
||||
$template_compiled, 1);
|
||||
}
|
||||
|
||||
// put header at the top of the compiled template
|
||||
|
@@ -141,7 +141,8 @@ class Smarty_Compiler extends Smarty {
|
||||
$strip_tags_modified = preg_replace('![\r\n]+!m', '', $strip_tags_modified);
|
||||
for ($i = 0; $i < count($strip_tags); $i++)
|
||||
$template_compiled = preg_replace("!{$ldq}strip{$rdq}.*?{$ldq}/strip{$rdq}!s",
|
||||
$strip_tags_modified[$i], $template_compiled, 1);
|
||||
$this->quote_replace($strip_tags_modified[$i]),
|
||||
$template_compiled, 1);
|
||||
}
|
||||
|
||||
// put header at the top of the compiled template
|
||||
|
Reference in New Issue
Block a user