Bug #17812 [Com]: pagination urls have trailing /

From: Date: Tue, 24 Aug 2010 19:57:46 +0000
Subject: Bug #17812 [Com]: pagination urls have trailing /
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4657@lists.php.net to get a copy of this message
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 } ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17812&edit=1

« previous php.pear.bugs (#4657) next »