php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26897 PHP.net URL Shortcut Bug, Trailing Slash can cause problems...
Submitted: 2004-01-13 15:18 UTC Modified: 2010-12-20 11:43 UTC
From: coco at digitalco2 dot com Assigned: goba (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: WinXP
Private report: No CVE-ID: None
 [2004-01-13 15:18 UTC] coco at digitalco2 dot com
Description:
------------
I just noticed that http://www.php.net/date goes to the Date & Time functions (as it should), but http://www.php.net/date/ (with the trailing slash) goes to the Tidy functions page. Just thought this was a little wierd.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-14 07:29 UTC] didou@php.net
It works for me :

www.php.net/date -> date() manual page
www.php.net/date/ => search page with date's link in bold

I don't get redirected to Tidy. What mirror are you using ?
 [2004-01-14 19:19 UTC] coco at digitalco2 dot com
That's wierd, it's only doing it on us4.php.net. This probably isn't a big deal, I just wanted to bring it to your attention because it may be misdirecting other functions as well (?). On another note, I'm also kind of suprised that the URL redirect doesn't go to the same place for date as it does for date/ (brings you to a search page instead). A simple regexp can probably fix that.
 [2004-01-15 07:01 UTC] goba@php.net
I will look into striping the trailing slash from shortcut URLs.
 [2004-01-15 18:52 UTC] coco at digitalco2 dot com
OK, that should essentially fix the date/ bug on us4.php.net. If you need any help with anything, I'd love to give back to the community that has helped me so much. Thanks for maintaining such a great site.
 [2004-01-15 19:14 UTC] didou@php.net
Here's the error handler if you want to provide a patch (diff -u) ;) 
http://cvs.php.net/co.php/phpweb/error.php?login=2&r=1.20

didou
 [2004-01-19 10:02 UTC] goba@php.net
The 1.20 error handler was already fixed to strip trailing slashes when not needed. So /date/ will work the same way as /date now.
 [2010-12-20 11:43 UTC] jani@php.net
-Package: Tidy +Package: Website problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 04:01:29 2024 UTC