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

ID: 17811
Updated by: l.alberton@quipo.it
Reported By: mottahedin at yahoo dot com
Summary: pagination urls have trailing /
-Status: Open
+Status: Feedback
Type: Bug
Package: Pager
Operating System: debian lenny
Package Version: 2.4.8
PHP Version: 5.2.6
-Assigned To:
+Assigned To: quipo
Roadmap Versions:
New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: quipo
This might not be a bug but a design decision. How are you using Pager,
and what do
you want to achieve? Can I see a reproducing script?


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

[2010-08-24 19:48:13] 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 6, '11 at 1:36p
activeMar 6, '11 at 1:36p
posts1
users1
websitepear.php.net

1 user in discussion

L Alberton: 1 post

People

Translate

site design / logo © 2022 Grokbase