cvs: smarty / NEWS /libs Smarty_Compiler.class.php

From: Date: Fri, 14 Mar 2003 16:28:48 +0000
Subject: cvs: smarty / NEWS /libs Smarty_Compiler.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-456@lists.php.net to get a copy of this message
mohrt Fri Mar 14 11:28:48 2003 EDT Modified files: /smarty NEWS /smarty/libs Smarty_Compiler.class.php Log: fix problem with escaped double quotes Index: smarty/NEWS diff -u smarty/NEWS:1.307 smarty/NEWS:1.308 --- smarty/NEWS:1.307 Fri Mar 14 10:52:34 2003 +++ smarty/NEWS Fri Mar 14 11:28:47 2003 @@ -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) Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.188 smarty/libs/Smarty_Compiler.class.php:1.189 --- smarty/libs/Smarty_Compiler.class.php:1.188 Wed Mar 5 12:36:41 2003 +++ smarty/libs/Smarty_Compiler.class.php Fri Mar 14 11:28:47 2003 @@ -1459,8 +1459,8 @@ } 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; }

« previous php.smarty.cvs (#456) next »