mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +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) {
|
foreach($_match as $_var) {
|
||||||
$var_expr = str_replace ($_var, '".' . $this->_parse_var(str_replace('`','',$_var)) . '."', $var_expr);
|
$var_expr = str_replace ($_var, '".' . $this->_parse_var(str_replace('`','',$_var)) . '."', $var_expr);
|
||||||
}
|
}
|
||||||
$_return = preg_replace('!\.""|""\.!', '', $var_expr);
|
$_return = preg_replace('%\.""|(?<!\\\\)""\.%', '', $var_expr);
|
||||||
} else {
|
} else {
|
||||||
$_return = $var_expr;
|
$_return = $var_expr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user