Edit report at http://pear.php.net/bugs/bug.php?id=17812&edit=1
ID: 17812
Comment by: mottahedin@yahoo.com
Reported By: mottahedin at yahoo dot com
Summary: pagination urls have trailing /
Status: Open
Type: Bug
Package: Pager
Operating System: debian lenny
Package Version: 2.4.8
PHP Version: 5.2.6
Roadmap Versions:
New Comment:
sorry, i submitted this bug twice by accident (original is bug #17811),
please delete this second bug report.
Previous Comments:
------------------------------------------------------------------------
[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
}
------------------------------------------------------------------------