mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -1300,8 +1300,8 @@ class FTPHandler(BaseHandler):
|
|||
else:
|
||||
passwd = None
|
||||
host = unquote(host)
|
||||
user = unquote(user or '')
|
||||
passwd = unquote(passwd or '')
|
||||
user = user or ''
|
||||
passwd = passwd or ''
|
||||
|
||||
try:
|
||||
host = socket.gethostbyname(host)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue