Commit 768c98bb authored by Fredrik Lundh's avatar Fredrik Lundh

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)
parent 218c5f96
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment