mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix problem with escaped double quotes
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- fix problem with escaped double quotes (Monte)
|
||||
- fix html_radios to not return an array (Monte)
|
||||
- fixed length in modifier.truncate.php (messju)
|
||||
- fixed handling of '$'-signs in trimwhitespace outputfilter (messju)
|
||||
|
@@ -1459,8 +1459,8 @@ class Smarty_Compiler extends Smarty {
|
||||
} else {
|
||||
$_return = $var_expr;
|
||||
}
|
||||
// replace double quoted string with single quotes
|
||||
$_return = preg_replace('!"([^\$\']+)"!',"'\\1'",$_return);
|
||||
// replace double quoted literal string with single quotes
|
||||
$_return = preg_replace('!^"([\s\w]+)"$!',"'\\1'",$_return);
|
||||
return $_return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user