Commit 360d8b0f by James Cammarata

Don't try to scan SSH signatures for non-ssh urls

Fixes #7812
parent 1d61b156
......@@ -69,6 +69,9 @@ def get_fqdn(repo_url):
elif "://" in repo_url:
# this should be something we can parse with urlparse
parts = urlparse.urlparse(repo_url)
if 'ssh' not in parts[0] and 'git' not in parts[0]:
# don't try and scan a hostname that's not ssh
return None
if parts[1] != '':
result = parts[1]
if "@" in result:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment