|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-28 07:41 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ Problem when the @(AT) sign when part of the user name during a FTP scheme. The common escape sequence of "%40" is documented within this report, "#&0040" was also tried as an escape sequence - but never fixed the problem either. (1 SOLUTION: Make the parser look for the (@)AT sign from the right, after the last '/' token, therefore there is no need to use escape sequences for the special character within the name) Reproduce code: --------------- print_r( parse_url("ftp://user%40sample.com:passcode@host.com")); Expected result: ---------------- Array ( [scheme] => ftp [host] => host.com [user] => user@sample.com [pass] => passcode ) Actual result: -------------- Array ( [scheme] => ftp [host] => host.com [user] => user%40sample.com [pass] => passcode )