jumaris / indyproject

Automatically exported from code.google.com/p/indyproject
0 stars 0 forks source link

TIdURI does not correctly parse a username with '@' characters in it #219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TIdURI separates auth info from hostname using the first '@' character found.  
If a URI contains a username with a '@' character in it, the parser separates 
auth info from hostname incorrectly, causing the Username, Password, Host, and 
Port properties to be parsed wrong. TIdURI uses IndyPos() to locate the '@' 
character, but it needs to use RPos() instead so it splits on the last '@' 
character instead of the first.

Original issue reported on code.google.com by gambit47 on 27 Mar 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Example URI that fails to parse correctly:

http://some_email@anydomain.com:userpasswd@sms.webservice.com.co:8008/smsp-in?%2
0mobile_number=573005658291&originator=SenderName&text=Hello+World&request_deliv
ery=true

Original comment by gambit47 on 27 Mar 2012 at 5:59

GoogleCodeExporter commented 9 years ago
Fixed in r4754.

Original comment by gambit47 on 15 May 2012 at 6:36