# HG changeset patch # User philip.j@hostdime.com # Date 2012-11-29 21:09:42 # Node ID 3f0fe158dc0cdb5a321f4d2f6c855313912e2ce2 # Parent 3b3de7c68ae1e4aae1749ea6eefcabad65748540 Added uri encoding to the username so that usernames with '@' in them (such as email address/users from LDAP) will not have to replace the first '@' with %40 in order to clone diff --git a/rhodecode/controllers/summary.py b/rhodecode/controllers/summary.py --- a/rhodecode/controllers/summary.py +++ b/rhodecode/controllers/summary.py @@ -97,7 +97,7 @@ class SummaryController(BaseRepoControll uri_tmpl = uri_tmpl.replace('{', '%(').replace('}', ')s') decoded_path = safe_unicode(urllib.unquote(parsed_url.path)) uri_dict = { - 'user': username, + 'user': urllib.quote(username), 'pass': password, 'scheme': parsed_url.scheme, 'netloc': parsed_url.netloc,