mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
This commit is contained in:
parent
d8b661dd90
commit
daa29d01b7
3 changed files with 18 additions and 8 deletions
|
@ -711,7 +711,7 @@ def splituser(host):
|
|||
_userprog = re.compile('^(.*)@(.*)$')
|
||||
|
||||
match = _userprog.match(host)
|
||||
if match: return map(unquote, match.group(1, 2))
|
||||
if match: return match.group(1, 2)
|
||||
return None, host
|
||||
|
||||
_passwdprog = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue