[Python-checkins] python/dist/src/Lib xmlrpclib.py,1.21,1.22
effbot@users.sourceforge.net
effbot@users.sourceforge.net
Fri, 01 Nov 2002 09:14:19 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15732/Lib
Modified Files:
xmlrpclib.py
Log Message:
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)
Index: xmlrpclib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xmlrpclib.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** xmlrpclib.py 22 Oct 2002 18:23:00 -0000 1.21
--- xmlrpclib.py 1 Nov 2002 17:14:16 -0000 1.22
***************
*** 1066,1070 ****
if auth:
import base64
! auth = base64.encodestring(auth)
auth = string.join(string.split(auth), "") # get rid of whitespace
extra_headers = [
--- 1066,1070 ----
if auth:
import base64
! auth = base64.encodestring(urllib.unquote(auth))
auth = string.join(string.split(auth), "") # get rid of whitespace
extra_headers = [