Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Bug #2617 [PATCH] 'append' Links are broken when used on index pages
Submitted: 2004-10-25 22:03 UTC
From: ieure at php dot net Assigned: quipo
Status: Closed Package: Pager
PHP Version: 4.3.9 OS: Linux
Roadmaps: (Not assigned)    

 [2004-10-25 22:03 UTC] ieure at php dot net
Description: ------------ When a Pager is used on a DirectoryIndex script, the links don't work. Pager seems to assume that the last component of the path is always a filename, when it is a directory in this case. E.g. if you have a Pager on 'index.php', and the URL to that is, the wrong links are returned when accessing it as Patch is here: The patch checks for a path ending in '/', and sets CURRENT_FILENAME to an empty string if this is the case. Reproduce code: --------------- Use a Pager on any script used as a DirectoryIndex. Expected result: ---------------- If a Pager is on the following URL: The links should be: or Actual result: -------------- The links are: Which causes Apache to interpret the request as asking for the nonexistent 'Foo' file, not the index of the 'Foo' directory.


 [2004-10-26 09:55 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. committed, thanks.