sonarcloud feedback

This commit is contained in:
Kyle Sanderson 2023-08-27 20:10:53 -07:00
commit 6c61700c2b

View file

@ -216,7 +216,7 @@ class API(object):
path = path.replace(protocol, protocol.lower())
if path.startswith('http') or path.startswith('ftp') or path.startswith('sftp') or path.startswith('dav'):
rs = re.search("(.*?://.+?/)(.+)", path)
rs = re.search("(^.*://[^/]+)(.+)", path)
if rs:
path = rs.group(1) + urlquote(rs.group(2))