Fix Issue2244 - urllib unquotes user and password info multiple times… · pythoncapi/cpython@daa29d0 · GitHub
Skip to content

Commit daa29d0

Browse files
committed
Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy
1 parent d8b661d commit daa29d0

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

Lib/test/test_urllib2.py

Lines changed: 15 additions & 5 deletions

Lib/urllib/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def splituser(host):
711711
_userprog = re.compile('^(.*)@(.*)$')
712712

713713
match = _userprog.match(host)
714-
if match: return map(unquote, match.group(1, 2))
714+
if match: return match.group(1, 2)
715715
return None, host
716716

717717
_passwdprog = None

Lib/urllib/request.py

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)