From 768c98bb0b974cd3b5421252f8263e6d4afb8f79 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Fri, 1 Nov 2002 17:14:16 +0000 Subject: 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) --- Lib/xmlrpclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12