comparison rhodecode/controllers/summary.py @ 3048:3f0fe158dc0c beta

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
author philip.j@hostdime.com
date Thu, 29 Nov 2012 16:09:42 -0500
parents a16f9a76c26f
children a5f0bc867edc b9ba0d4d3abf
comparison
equal deleted inserted replaced
3047:3b3de7c68ae1 3048:3f0fe158dc0c
95 95
96 uri_tmpl = config.get('clone_uri', default_clone_uri) 96 uri_tmpl = config.get('clone_uri', default_clone_uri)
97 uri_tmpl = uri_tmpl.replace('{', '%(').replace('}', ')s') 97 uri_tmpl = uri_tmpl.replace('{', '%(').replace('}', ')s')
98 decoded_path = safe_unicode(urllib.unquote(parsed_url.path)) 98 decoded_path = safe_unicode(urllib.unquote(parsed_url.path))
99 uri_dict = { 99 uri_dict = {
100 'user': username, 100 'user': urllib.quote(username),
101 'pass': password, 101 'pass': password,
102 'scheme': parsed_url.scheme, 102 'scheme': parsed_url.scheme,
103 'netloc': parsed_url.netloc, 103 'netloc': parsed_url.netloc,
104 'path': decoded_path 104 'path': decoded_path
105 } 105 }