# HG changeset patch # User Benoit Boissinot # Date 1266269976 -3600 # Node ID cadd7e076b6994f7fcd019ec4fdd3a610b64558e # Parent c315125d0a39832509d8364fb89f04d5c5f13cc7 url: correctly quote '/' in user and password embedded in urls diff -r c315125d0a39 -r cadd7e076b69 mercurial/url.py --- a/mercurial/url.py Mon Feb 15 16:34:59 2010 -0200 +++ b/mercurial/url.py Mon Feb 15 22:39:36 2010 +0100 @@ -51,10 +51,11 @@ else: hostport = host if user: + quote = lambda s: urllib.quote(s, safe='') if passwd: - userpass = urllib.quote(user) + ':' + urllib.quote(passwd) + userpass = quote(user) + ':' + quote(passwd) else: - userpass = urllib.quote(user) + userpass = quote(user) return userpass + '@' + hostport return hostport