]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
patch #624180 (part 2 of 2):
authorFredrik Lundh <fredrik@pythonware.com>
Fri, 1 Nov 2002 17:14:16 +0000 (17:14 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Fri, 1 Nov 2002 17:14:16 +0000 (17:14 +0000)
use unquote on authentication strings, to allow users to embed
@ and : in user names and passwords (from Phillip Eby)

Lib/xmlrpclib.py

index e984baf551d1bec16b0d19f08c67ef141fd27293..5ef1cf9300ccc2ff80b1530d284f995a4a420a7e 100644 (file)
@@ -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)