From 42f31952dfdba8581b296d3a194d8b77e287e426 Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 11 Jan 2001 19:57:07 +0000 Subject: [PATCH] *** empty log message *** --- Smarty.class.php | 6 +++--- libs/Smarty.class.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index cdf0b20d..655e369d 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -383,15 +383,15 @@ class Smarty function _compile_tag($template_tag) { /* Matched comment. */ - if ($template_tag{0} == '*' && $template_tag{strlen($tokens)-1} == '*') + if ($template_tag{0} == '*' && $template_tag{strlen($template_tag)-1} == '*') return ""; /* Split tag into two parts: command and the arguments. */ preg_match('/^( - (?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+ + (?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\'\s]+))+ ) (?:\s+(.*))? - /xs', $template_tag, $match); + /xs', $template_tag, $match); list(, $tag_command, $tag_args) = $match; /* If the tag name matches a variable or section property definition, diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index cdf0b20d..655e369d 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -383,15 +383,15 @@ class Smarty function _compile_tag($template_tag) { /* Matched comment. */ - if ($template_tag{0} == '*' && $template_tag{strlen($tokens)-1} == '*') + if ($template_tag{0} == '*' && $template_tag{strlen($template_tag)-1} == '*') return ""; /* Split tag into two parts: command and the arguments. */ preg_match('/^( - (?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\' ]+))+ + (?:"[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | (?>[^"\'\s]+))+ ) (?:\s+(.*))? - /xs', $template_tag, $match); + /xs', $template_tag, $match); list(, $tag_command, $tag_args) = $match; /* If the tag name matches a variable or section property definition,