cvs: pear /HTML_Common Common.php package2.xml

From: Date: Fri, 03 Apr 2009 15:26:23 +0000
Subject: cvs: pear /HTML_Common Common.php package2.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-55877@lists.php.net to get a copy of this message
avb Fri Apr 3 15:26:23 2009 UTC Modified files: /pear/HTML_Common Common.php package2.xml Log: Fix #15787: whitespace was erroneosly trimmed from quoted attribute values in _parseAttributes() Prepare release 1.2.5 http://cvs.php.net/viewvc.cgi/pear/HTML_Common/Common.php?r1=1.14&r2=1.15&diff_format=u Index: pear/HTML_Common/Common.php diff -u pear/HTML_Common/Common.php:1.14 pear/HTML_Common/Common.php:1.15 --- pear/HTML_Common/Common.php:1.14 Wed May 16 20:06:44 2007 +++ pear/HTML_Common/Common.php Fri Apr 3 15:26:22 2009 @@ -15,9 +15,9 @@ * @category HTML * @package HTML_Common * @author Adam Daniel <adaniel1@eesus.jnj.com> - * @copyright 2001-2007 The PHP Group + * @copyright 2001-2009 The PHP Group * @license http://www.php.net/license/3_01.txt PHP License 3.01 - * @version CVS: $Id: Common.php,v 1.14 2007/05/16 20:06:44 avb Exp $ + * @version CVS: $Id: Common.php,v 1.15 2009/04/03 15:26:22 avb Exp $ * @link http://pear.php.net/package/HTML_Common/ */ @@ -179,9 +179,10 @@ $arrAttr[strtolower(trim($name))] = strtolower(trim($name)); } else { if (substr($value, 0, 1) == "\"" || substr($value, 0, 1) == "'") { - $value = substr($value, 1, -1); + $arrAttr[strtolower(trim($name))] = substr($value, 1, -1); + } else { + $arrAttr[strtolower(trim($name))] = trim($value); } - $arrAttr[strtolower(trim($name))] = trim($value); } } return $arrAttr; http://cvs.php.net/viewvc.cgi/pear/HTML_Common/package2.xml?r1=1.3&r2=1.4&diff_format=u Index: pear/HTML_Common/package2.xml diff -u pear/HTML_Common/package2.xml:1.3 pear/HTML_Common/package2.xml:1.4 --- pear/HTML_Common/package2.xml:1.3 Wed May 16 20:06:44 2007 +++ pear/HTML_Common/package2.xml Fri Apr 3 15:26:22 2009 @@ -36,10 +36,10 @@ <email>adaniel1@eesus.jnj.com</email> <active>no</active> </lead> - <date>2007-05-16</date> + <date>2009-04-03</date> <version> - <release>1.2.4</release> - <api>1.2.4</api> + <release>1.2.5</release> + <api>1.2.3</api> </version> <stability> <release>stable</release> @@ -47,8 +47,8 @@ </stability> <license uri="http://www.php.net/license">PHP License</license> <notes> -Migrate to package.xml version 2.0, use proper header comment block. -No code changes since previous release. +Whitespace is no longer trimmed from quoted attribute values in +_parseAttribute() method (bug #15787) </notes> <contents> <dir name="/"> @@ -60,10 +60,10 @@ <dependencies> <required> <php> - <min>4.0.0</min> + <min>4.0.4</min> </php> <pearinstaller> - <min>1.4.0b1</min> + <min>1.4.3</min> </pearinstaller> </required> </dependencies> @@ -71,6 +71,22 @@ <changelog> <release> <version> + <release>1.2.4</release> + <api>1.2.3</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2007-05-16</date> + <license uri="http://www.php.net/license">PHP License</license> + <notes> +Migrate to package.xml version 2.0, use proper header comment block. +No code changes since previous release. + </notes> + </release> + <release> + <version> <release>1.2.3</release> <api>1.2.3</api> </version>

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