From 2df1ca2d00b3dadcea8f9569b4c5528e30e3b2a4 Mon Sep 17 00:00:00 2001 From: mohrt Date: Mon, 17 Mar 2003 14:56:39 +0000 Subject: [PATCH] fix issue of embedded var and escaped double quotes --- libs/Smarty_Compiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index d22cee52..a08201be 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1455,7 +1455,7 @@ class Smarty_Compiler extends Smarty { foreach($_match as $_var) { $var_expr = str_replace ($_var, '".' . $this->_parse_var(str_replace('`','',$_var)) . '."', $var_expr); } - $_return = preg_replace('!\.""|""\.!', '', $var_expr); + $_return = preg_replace('%\.""|(?