mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 15:14:44 +00:00
Only prepend http:// to non-empty URLs.
This commit is contained in:
parent
6d38a4e296
commit
4a9b05dbfd
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ Version 2 or later.</p>
|
|||
url = u"http://%s" % url
|
||||
elif url.startswith(u"ftp."):
|
||||
url = u"ftp://%s" % url
|
||||
elif u":" not in url:
|
||||
elif url and u":" not in url:
|
||||
# Look for local filename, else assume it's an HTTP URL.
|
||||
if not os.path.isfile(url):
|
||||
url = u"http://%s" % url
|
||||
|
|
|
|||
Loading…
Reference in a new issue