1
0
Fork 0

tools/web: colon char in URL precedes optional //

This commit is contained in:
nemunaire 2015-10-15 19:26:09 +02:00
parent 55e6550cb1
commit fd99deed1d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ def isURL(url):
def _getNormalizedURL(url):
"""Return a light normalized form for the given URL"""
return url if "//" in url else "//" + url
return url if "//" in url or ":" in url else "//" + url
def getNormalizedURL(url):
"""Return a normalized form for the given URL"""