Kaydet (Commit) d60df17b authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Patch #944110: Properly process empty passwords. Fixes #944082.

üst e3ea9012
......@@ -639,7 +639,7 @@ class AbstractBasicAuthHandler:
def retry_http_basic_auth(self, host, req, realm):
user,pw = self.passwd.find_user_password(realm, host)
if pw:
if pw is not None:
raw = "%s:%s" % (user, pw)
auth = 'Basic %s' % base64.encodestring(raw).strip()
if req.headers.get(self.auth_header, None) == auth:
......
......@@ -42,6 +42,8 @@ Core and builtins
Library
-------
- Bug #944082: Empty passwords in urllib2 are now supported.
- Bug #926075: Fixed a bug that returns a wrong pattern object
for a string or unicode object in sre.compile() when a different
type pattern with the same value exists.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment