cvs: pear /HTML_Template_Flexy package.xml /HTML_Template_Flexy/Flexy/Token Tag.php
| From: | Alan Knowles | Date: | Sat, 08 Feb 2003 06:33:32 +0000 |
| Subject: | cvs: pear /HTML_Template_Flexy package.xml /HTML_Template_Flexy/Flexy/Token Tag.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8755@lists.php.net to get a copy of this message | ||
alan_k Sat Feb 8 01:33:32 2003 EDT
Modified files:
/pear/HTML_Template_Flexy package.xml
/pear/HTML_Template_Flexy/Flexy/Token Tag.php
Log:
handle reset and blank name fields correctly
Index: pear/HTML_Template_Flexy/package.xml
diff -u pear/HTML_Template_Flexy/package.xml:1.14 pear/HTML_Template_Flexy/package.xml:1.15
--- pear/HTML_Template_Flexy/package.xml:1.14 Thu Feb 6 03:04:58 2003
+++ pear/HTML_Template_Flexy/package.xml Sat Feb 8 01:33:32 2003
@@ -28,7 +28,8 @@
- FLEXYSTART/FLEXYSTARTCHILDREN tags to define where output starts/finishes
- support for urlencoded braces {} in HTML attributes.
-
+ - docs temporarily at http://devel.akbkhome.com/peardoc2/package.html.html-template-flexy.html
+
</description>
<license>PHP License</license>
@@ -43,20 +44,12 @@
<release>
- <version>0.3</version>
- <date>2003-02-06</date>
+ <version>0.4</version>
+ <date>2003-02-15</date>
<notes>
Bug fixes
- - allow usage with only constructor options
- - fixed form elements - should be htmlspecialchars, rather than urlencoding
- - new Tokenizer is enabled by default - set 'useLegacy' in config/options to
- use the old regex replacer.
- - no variables are added (eg. o.*, a.* etc. to the page unless useLegacy is set)
- - parsers are now private methods. (internal change)
-
- New Features
- - FLEXYSTART and FLEXYSTARTCHILDREN tags added so when use you include sub
- templates, you can avoid including HEAD etc. tags.
+ - deal with blank names in forms (no replacement is done)
+ - deal with reset items in forms (no replacement is done)
</notes>
<state>beta</state>
@@ -98,6 +91,27 @@
<changelog>
+
+ <release>
+ <version>0.3</version>
+ <date>2003-02-06</date>
+ <notes>
+ Bug fixes
+ - allow usage with only constructor options
+ - fixed form elements - should be htmlspecialchars, rather than urlencoding
+ - new Tokenizer is enabled by default - set 'useLegacy' in config/options to
+ use the old regex replacer.
+ - no variables are added (eg. o.*, a.* etc. to the page unless useLegacy is set)
+ - parsers are now private methods. (internal change)
+
+ New Features
+ - FLEXYSTART and FLEXYSTARTCHILDREN tags added so when use you include sub
+ templates, you can avoid including HEAD etc. tags.
+
+ </notes>
+ <state>beta</state>
+ </release>
+
<release>
<version>0.2</version>
<date>2003-02-03</date>
Index: pear/HTML_Template_Flexy/Flexy/Token/Tag.php
diff -u pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.9
pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.10
--- pear/HTML_Template_Flexy/Flexy/Token/Tag.php:1.9 Thu Feb 6 01:55:32 2003
+++ pear/HTML_Template_Flexy/Flexy/Token/Tag.php Sat Feb 8 01:33:32 2003
@@ -16,7 +16,7 @@
// | Authors: Alan Knowles <alan@akbkhome> |
// +----------------------------------------------------------------------+
//
-// $Id: Tag.php,v 1.9 2003/02/06 06:55:32 alan_k Exp $
+// $Id: Tag.php,v 1.10 2003/02/08 06:33:32 alan_k Exp $
/**
* A standard HTML Tag = eg. Table/Body etc.
@@ -218,6 +218,9 @@
//value - fill out as PHP CODE
$name = $this->getAttribute('NAME');
+ if ($name == '') {
+ return;
+ }
if ($_HTML_TEMPLATE_FLEXY_TOKEN['activeForm']) {
$name = $_HTML_TEMPLATE_FLEXY_TOKEN['activeForm'] .'.'.$name;
}
@@ -239,11 +242,11 @@
$this->line);
$this->postfix = $posterror;
break;
-
+
+ case "RESET":
case "SUBMIT":
return;
-