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)
This commit is contained in:
Fredrik Lundh 2002-11-01 17:14:16 +00:00
parent 218c5f9691
commit 768c98bb0b
1 changed files with 1 additions and 1 deletions

View 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)