mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Merge pull request #6888 from wenottingham/quote-of-the-day
Ensure we quote '/' in username/password for SCM credentials.
This commit is contained in:
commit
fe46c6f3b3
@ -256,7 +256,7 @@ def update_scm_url(scm_type, url, username=True, password=True,
|
||||
netloc_password = ''
|
||||
|
||||
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:
|
||||
netloc = u''
|
||||
netloc = u'@'.join(filter(None, [netloc, parts.hostname]))
|
||||
|
Loading…
Reference in New Issue
Block a user