cvs: pear /Pager Common.php package.xml /Pager/tests pager_test.php

From: Date: Wed, 11 Oct 2006 16:01:33 +0000
Subject: cvs: pear /Pager Common.php package.xml /Pager/tests pager_test.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42493@lists.php.net to get a copy of this message
quipo Wed Oct 11 16:01:33 2006 UTC Modified files: /pear/Pager Common.php package.xml /pear/Pager/tests pager_test.php Log: items set in 'excludeVars' array were removed from the URL even if they were also set in the 'extraVars' array (bug #8969) http://cvs.php.net/viewvc.cgi/pear/Pager/Common.php?r1=1.56&r2=1.57&diff_format=u Index: pear/Pager/Common.php diff -u pear/Pager/Common.php:1.56 pear/Pager/Common.php:1.57 --- pear/Pager/Common.php:1.56 Mon Jun 19 10:40:07 2006 +++ pear/Pager/Common.php Wed Oct 11 16:01:33 2006 @@ -33,7 +33,7 @@ * @author Richard Heyes <richard@phpguru.org> * @copyright 2003-2006 Lorenzo Alberton, Richard Heyes * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: Common.php,v 1.56 2006/06/19 10:40:07 quipo Exp $ + * @version CVS: $Id: Common.php,v 1.57 2006/10/11 16:01:33 quipo Exp $ * @link http://pear.php.net/package/Pager */ @@ -895,15 +895,15 @@ $qs = $_GET; } } - if (count($this->_extraVars)){ - $this->_recursive_urldecode($this->_extraVars); - } - $qs = array_merge($qs, $this->_extraVars); foreach ($this->_excludeVars as $exclude) { if (array_key_exists($exclude, $qs)) { unset($qs[$exclude]); } } + if (count($this->_extraVars)){ + $this->_recursive_urldecode($this->_extraVars); + $qs = array_merge($qs, $this->_extraVars); + } if (count($qs) && get_magic_quotes_gpc()){ $this->_recursive_stripslashes($qs); } http://cvs.php.net/viewvc.cgi/pear/Pager/package.xml?r1=1.78&r2=1.79&diff_format=u Index: pear/Pager/package.xml diff -u pear/Pager/package.xml:1.78 pear/Pager/package.xml:1.79 --- pear/Pager/package.xml:1.78 Mon Jun 19 10:40:07 2006 +++ pear/Pager/package.xml Wed Oct 11 16:01:33 2006 @@ -21,16 +21,19 @@ <name>Richard Heyes</name> <email>richard@phpguru.org</email> <role>lead</role> + <inactive/> </maintainer> </maintainers> <release> <version>2.4.3</version> - <date>2006-06-19</date> + <date>2006-10-11</date> <state>stable</state> <notes> <![CDATA[ - fixed issue with SSL (bug #7936) +- items set in 'excludeVars' array were removed from the URL even if they were + also set in the 'extraVars' array (bug #8969) ]]> </notes> @@ -79,11 +82,13 @@ <changelog> <release> <version>2.4.3</version> - <date>2006-06-19</date> + <date>2006-10-11</date> <state>stable</state> <notes> <![CDATA[ - fixed issue with SSL (bug #7936) +- items set in 'excludeVars' array were removed from the URL even if they were + also set in the 'extraVars' array (bug #8969) ]]> </notes> </release> http://cvs.php.net/viewvc.cgi/pear/Pager/tests/pager_test.php?r1=1.22&r2=1.23&diff_format=u Index: pear/Pager/tests/pager_test.php diff -u pear/Pager/tests/pager_test.php:1.22 pear/Pager/tests/pager_test.php:1.23 --- pear/Pager/tests/pager_test.php:1.22 Wed Jun 7 11:48:13 2006 +++ pear/Pager/tests/pager_test.php Wed Oct 11 16:01:33 2006 @@ -1,5 +1,5 @@ <?php -// $Id: pager_test.php,v 1.22 2006/06/07 11:48:13 quipo Exp $ +// $Id: pager_test.php,v 1.23 2006/10/11 16:01:33 quipo Exp $ require_once 'simple_include.php'; require_once 'pager_include.php'; @@ -232,6 +232,7 @@ 0 => 'apple', 1 => 'orange' ), + 'no' => 'test', ); $actual = $this->pager->_getLinksData(); $this->assertEqual($expected, $this->pager->_getLinksData()); @@ -239,7 +240,7 @@ if ($separator == '&') { $separator = '&amp;'; } - $expected = '<a href="'.$_SERVER['PHP_SELF'].'?arr%5B0%5D=apple'.$separator.'arr%5B1%5D=orange'.$separator.'pageID=2" title=""></a>'; + $expected = '<a href="'.$_SERVER['PHP_SELF'].'?arr%5B0%5D=apple'.$separator.'arr%5B1%5D=orange'.$separator.'no=test'.$separator.'pageID=2" title=""></a>'; $actual = $this->pager->_renderLink('', ''); $this->assertEqual($expected, $actual); }

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