Fixed a problem with $<number> inside strip tags.

This commit is contained in:
andrey
2001-06-04 14:37:32 +00:00
parent 28348f4e2c
commit fd5b113436
3 changed files with 6 additions and 2 deletions

2
NEWS
View File

@@ -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)

View File

@@ -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

View File

@@ -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