[Patches] [ python-Patches-596581 ] urllib.splituser(): '@' in usrname

noreply@sourceforge.net noreply@sourceforge.net
Sat, 17 Aug 2002 17:49:51 -0700


Patches item #596581, was opened at 2002-08-17 16:55
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=596581&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Simms (slyphon)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: urllib.splituser(): '@' in usrname

Initial Comment:
This was in response to "[ 581529 ] bug in 
splituser(host) in urllib". This was a one-line 
change. The issue was that if a username contained 
the '@' symbol, the urllib.splituser(host) method 
wouldn't return the correct information.

if you were to try 
urllib.splituser(Jones@CrunchyFrog.net@Whizzo.com), 
you'd get ['Jones', 'CrunchyFrog.net@Whizzo.com']

after applying this patch, you get 
['Jones@CrunchyFrog.net', 'Whizzo.com']

So, there you are... :-)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=596581&group_id=5470