summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2002-11-01 17:14:16 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2002-11-01 17:14:16 (GMT)
commit768c98bb0b974cd3b5421252f8263e6d4afb8f79 (patch)
treed40b42b86cdc227cc19a38f0fdea17af065af601
parent218c5f9691bdbc81b7e3f8a3a2b12d58193e840d (diff)
downloadcpython-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)
-rw-r--r--Lib/xmlrpclib.py2
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)