mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Ensure we quote '/' in username/password for SCM credentials.
This commit is contained in:
@@ -256,7 +256,7 @@ def update_scm_url(scm_type, url, username=True, password=True,
|
|||||||
netloc_password = ''
|
netloc_password = ''
|
||||||
|
|
||||||
if netloc_username and parts.scheme != 'file' and scm_type != "insights":
|
if netloc_username and parts.scheme != 'file' and scm_type != "insights":
|
||||||
netloc = u':'.join([urllib.quote(x) for x in (netloc_username, netloc_password) if x])
|
netloc = u':'.join([urllib.quote(x,safe='') for x in (netloc_username, netloc_password) if x])
|
||||||
else:
|
else:
|
||||||
netloc = u''
|
netloc = u''
|
||||||
netloc = u'@'.join(filter(None, [netloc, parts.hostname]))
|
netloc = u'@'.join(filter(None, [netloc, parts.hostname]))
|
||||||
|
|||||||
Reference in New Issue
Block a user