note 70367 added to function.pathinfo
| From: | goulvenchATgmailDOTcom at osu1 dot php dot net | Date: | Fri, 13 Oct 2006 09:40:01 +0000 |
| Subject: | note 70367 added to function.pathinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118485@lists.php.net to get a copy of this message | ||
When using relative URLs with pathinfo, the result will be a complete mess should there be a
"/" somewhere unexpected.
/index.php?id=456/blah_blah_blah will return
dirname => /index.php?id=456
filename => blah_blah_blah
Completely unusable, since I'm dealing with both relative and absolute URLs. Too bad...
----
Server IP: 194.246.101.61
Probable Submitter: 212.234.105.116 (proxied: 1.1 ISASVR)
----
Manual Page -- http://www.php.net/manual/en/function.pathinfo.php
Edit -- https://master.php.net/note/edit/70367
Del: integrated -- https://master.php.net/note/delete/70367/integrated
Del: useless -- https://master.php.net/note/delete/70367/useless
Del: bad code -- https://master.php.net/note/delete/70367/bad+code
Del: spam -- https://master.php.net/note/delete/70367/spam
Del: non-english -- https://master.php.net/note/delete/70367/non-english
Del: in docs -- https://master.php.net/note/delete/70367/in+docs
Del: other reasons-- https://master.php.net/note/delete/70367
Reject -- https://master.php.net/note/reject/70367
Search -- https://master.php.net/manage/user-notes.php