cvs: smarty /libs Smarty_Compiler.class.php
| From: | Monte Ohrt | Date: | Mon, 17 Mar 2003 14:56:40 +0000 |
| Subject: | cvs: smarty /libs Smarty_Compiler.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-463@lists.php.net to get a copy of this message | ||
mohrt Mon Mar 17 09:56:40 2003 EDT
Modified files:
/smarty/libs Smarty_Compiler.class.php
Log:
fix issue of embedded var and escaped double quotes
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.193 smarty/libs/Smarty_Compiler.class.php:1.194
--- smarty/libs/Smarty_Compiler.class.php:1.193 Sat Mar 15 15:47:29 2003
+++ smarty/libs/Smarty_Compiler.class.php Mon Mar 17 09:56:39 2003
@@ -1455,7 +1455,7 @@
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;
}