Fix Issue2244 - urllib unquotes user and password info multiple times - Patch by Theodore Turocy

This commit is contained in:
Senthil Kumaran 2010-11-18 15:36:41 +00:00
parent d8b661dd90
commit daa29d01b7
3 changed files with 18 additions and 8 deletions

View file

@ -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)