diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2002-11-01 17:14:16 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2002-11-01 17:14:16 (GMT) |
commit | 768c98bb0b974cd3b5421252f8263e6d4afb8f79 (patch) | |
tree | d40b42b86cdc227cc19a38f0fdea17af065af601 /Lib/xmlrpclib.py | |
parent | 218c5f9691bdbc81b7e3f8a3a2b12d58193e840d (diff) | |
download | cpython-768c98bb0b974cd3b5421252f8263e6d4afb8f79.zip cpython-768c98bb0b974cd3b5421252f8263e6d4afb8f79.tar.gz cpython-768c98bb0b974cd3b5421252f8263e6d4afb8f79.tar.bz2 |
patch #624180 (part 2 of 2):
use unquote on authentication strings, to allow users to embed
@ and : in user names and passwords (from Phillip Eby)
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r-- | Lib/xmlrpclib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index e984baf..5ef1cf9 100644 --- a/Lib/xmlrpclib.py +++ b/Lib/xmlrpclib.py @@ -1065,7 +1065,7 @@ class Transport: if auth: import base64 - auth = base64.encodestring(auth) + auth = base64.encodestring(urllib.unquote(auth)) auth = string.join(string.split(auth), "") # get rid of whitespace extra_headers = [ ("Authorization", "Basic " + auth) |