Bug #17812 [Opn->Dup]: pagination urls have trailing /

From: Date: Wed, 25 Aug 2010 03:20:13 +0000
Subject: Bug #17812 [Opn->Dup]: pagination urls have trailing /
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4663@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 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 } ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17812&edit=1

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