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

From: Date: Fri, 04 Apr 2003 20:15: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-510@lists.php.net to get a copy of this message
mohrt Fri Apr 4 15:15:48 2003 EDT Modified files: /smarty NEWS /smarty/libs Smarty_Compiler.class.php Log: recognize $foo[][] syntax in embedded quotes without backticks Index: smarty/NEWS diff -u smarty/NEWS:1.331 smarty/NEWS:1.332 --- smarty/NEWS:1.331 Thu Apr 3 12:00:17 2003 +++ smarty/NEWS Fri Apr 4 15:15:47 2003 @@ -1,3 +1,5 @@ + - recognize $foo[][] syntax inside embedded quotes without + backtics (Monte) - name=123 is passed as an integer (not a string) to plugins now (messju) - $length is now propagated to sub-values in debug_print_var (messju) Index: smarty/libs/Smarty_Compiler.class.php diff -u smarty/libs/Smarty_Compiler.class.php:1.201 smarty/libs/Smarty_Compiler.class.php:1.202 --- smarty/libs/Smarty_Compiler.class.php:1.201 Thu Apr 3 12:00:17 2003 +++ smarty/libs/Smarty_Compiler.class.php Fri Apr 4 15:15:48 2003 @@ -38,7 +38,7 @@ * @package Smarty */ -/* $Id: Smarty_Compiler.class.php,v 1.201 2003/04/03 17:00:17 messju Exp $ */ +/* $Id: Smarty_Compiler.class.php,v 1.202 2003/04/04 20:15:48 mohrt Exp $ */ class Smarty_Compiler extends Smarty { @@ -1452,7 +1452,7 @@ function _expand_quoted_text($var_expr) { // if contains unescaped $, expand it - if(preg_match_all('%(?<!\\\\)\$(?:\' . $this->_dvar_guts_regexp . '\|\w+)%', $var_expr, $_match)) { + if(preg_match_all('%(?<!\\\\)\$(?:\' . $this->_dvar_guts_regexp . '\|\w+(\[[a-zA-Z0-9]+\])*)%', $var_expr, $_match)) { $_match = $_match[0]; rsort($_match); reset($_match);

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