mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix issue of embedded var and escaped double quotes
This commit is contained in:
@@ -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('%\.""|(?<!\\\\)""\.%', '', $var_expr);
|
||||
} else {
|
||||
$_return = $var_expr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user