cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php

From: Date: Mon, 08 Sep 2003 07:32:19 +0000
Subject: cvs: pear /HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12533@lists.php.net to get a copy of this message
alan_k Mon Sep 8 03:32:19 2003 EDT Modified files: /pear/HTML_Template_Flexy/Flexy/Compiler/Standard Tag.php Log: more support for arrays.. Index: pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php diff -u pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.8 pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.9 --- pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php:1.8 Mon Aug 25 03:29:23 2003 +++ pear/HTML_Template_Flexy/Flexy/Compiler/Standard/Tag.php Mon Sep 8 03:32:19 2003 @@ -10,7 +10,7 @@ * one instance of these exists for each namespace. * * -* @version $Id: Tag.php,v 1.8 2003/08/25 07:29:23 alan_k Exp $ +* @version $Id: Tag.php,v 1.9 2003/09/08 07:32:19 alan_k Exp $ */ class HTML_Template_Flexy_Compiler_Standard_Tag { @@ -277,7 +277,7 @@ // if="xxxx.xxxx()" - should create a method prefixed with 'if:' // these checks should really be in the if/method class..!!! - if (!preg_match('/^[_A-Z][A-Z0-9_]*(\[[0-9]+\])?(\.[_A-Z][A-Z0-9_]*(\[[0-9]+\])?)*(\(\))?$/i',$if)) { + if (!preg_match('/^[_A-Z][A-Z0-9_]*(\[[0-9]+\])?((\[|%5B)[A-Z0-9_]+(\]|%5D))*(\.[_A-Z][A-Z0-9_]*((\[|%5B)[A-Z0-9_]+(\]|%5D))*)*(\(\))?$/i',$if)) { PEAR::raiseError( "IF tags only accept simple object.variable or object.method() values on Line {$this->element->line} <{$this->element->tag}>", null, PEAR_ERROR_DIE);

« previous php.pear.cvs (#12533) next »