From: Fredrik Lundh Date: Fri, 1 Nov 2002 17:14:16 +0000 (+0000) Subject: patch #624180 (part 2 of 2): X-Git-Tag: v2.3c1~3625 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=768c98bb0b974cd3b5421252f8263e6d4afb8f79;p=thirdparty%2FPython%2Fcpython.git 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) --- diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py index e984baf551d1..5ef1cf9300cc 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)