From 0a03b8c30627f4b6093f38570eb75713f0e6e13c Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 28 Feb 2003 15:54:43 +0000 Subject: [PATCH] only allow $foo syntax in embedded quotes, unless escaped with backticks then allow any dollar var --- 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 1f33393f..3e731eb5 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -1448,7 +1448,7 @@ class Smarty_Compiler extends Smarty { function _expand_quoted_text($var_expr) { // if contains unescaped $, expand it - if(preg_match_all('%(?_dvar_guts_regexp . '\`?%', $var_expr, $_match)) { + if(preg_match_all('%(?_dvar_guts_regexp . '\`|\w+)%', $var_expr, $_match)) { $_match = $_match[0]; rsort($_match); reset($_match);