From 09f5c23737a113e2cc4ac04c84ae45ebdf4bde8a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 5 Jul 2017 11:45:29 -0400 Subject: [PATCH] Ensure we quote '/' in username/password for SCM credentials. --- awx/main/utils/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/utils/common.py b/awx/main/utils/common.py index ba9fb73c54..f2a5b14569 100644 --- a/awx/main/utils/common.py +++ b/awx/main/utils/common.py @@ -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]))