From: php at davidmatthews dot info
Operating system: Win2k, Redhat 8
PHP version: 4.3.2
PHP Bug Type: URL related
Bug description: parse_url, FTP username problem
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:[EMAIL PROTECTED]"));
Expected result:
----------------
Array ( [scheme] => ftp [host] => host.com [user] => [EMAIL PROTECTED]
[pass] => passcode )
Actual result:
--------------
Array ( [scheme] => ftp [host] => host.com [user] => user%40sample.com
[pass] => passcode )
--
Edit bug report at http://bugs.php.net/?id=24836&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24836&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24836&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24836&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24836&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24836&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24836&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24836&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24836&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24836&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24836&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24836&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24836&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24836&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24836&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24836&r=gnused