FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17812&edit=1

ID: 17812
Updated by: daniel.oconnor@gmail.com
Reported By: mottahedin at yahoo dot com
Summary: pagination urls have trailing /
-Status: Open
+Status: Duplicate
Type: Bug
Package: Pager
Operating System: debian lenny
Package Version: 2.4.8
PHP Version: 5.2.6
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate



Previous Comments:
------------------------------------------------------------------------

[2010-08-24 19:57:46] shirali19

sorry, i submitted this bug twice by accident (original is bug #17811),
please delete this second bug report.

------------------------------------------------------------------------

[2010-08-24 19:51:38] shirali19

Description:
------------
pagination urls have a trailing '/' which needs to be stripped. Bug fix:
In the file Common.php, function setOptions, add the following line,
commented by '***':

if (substr($this->_path, -1, 1) == '/') {
$this->_fileName = ltrim($this->_fileName, '/'); //strip
leading slash
$this->_path = rtrim($this->_path, '/'); //*** strip
trailing slash
}

------------------------------------------------------------------------

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 24, '10 at 7:57p
activeAug 25, '10 at 3:20a
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Mottahedin: 1 post

People

Translate

site design / logo © 2022 Grokbase