ID:               24836
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at davidmatthews dot info
-Status:           Open
+Status:           Bogus
 Bug Type:         URL related
 Operating System: Win2k, Redhat 8
 PHP Version:      4.3.2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

prase_url never did url decoding on the various parts.


Previous Comments:
------------------------------------------------------------------------

[2003-07-28 01:58:51] php at davidmatthews dot info

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 this bug report at http://bugs.php.net/?id=24836&edit=1

Reply via email to