From 22d48612762af06720b3a7f8dd5569a3693de18e Mon Sep 17 00:00:00 2001 From: andrey Date: Mon, 5 Feb 2001 15:22:12 +0000 Subject: [PATCH] Fix modifier arg parsing. --- Smarty.class.php | 2 +- libs/Smarty.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smarty.class.php b/Smarty.class.php index dd5f9f55..d9f81670 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -1105,7 +1105,7 @@ class Smarty for ($i = 0; $i < count($modifiers); $i++) { $modifier_name = $modifiers[$i]; - preg_match_all('!:(' . $qstr_regexp . '|[^|]+)!', $modifier_arg_strings[$i], $match); + preg_match_all('!:(' . $qstr_regexp . '|[^:]+)!', $modifier_arg_strings[$i], $match); $modifier_args = $match[1]; if ($modifier_name{0} == '@') { diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index dd5f9f55..d9f81670 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -1105,7 +1105,7 @@ class Smarty for ($i = 0; $i < count($modifiers); $i++) { $modifier_name = $modifiers[$i]; - preg_match_all('!:(' . $qstr_regexp . '|[^|]+)!', $modifier_arg_strings[$i], $match); + preg_match_all('!:(' . $qstr_regexp . '|[^:]+)!', $modifier_arg_strings[$i], $match); $modifier_args = $match[1]; if ($modifier_name{0} == '@') {