mirror of https://github.com/CIRCL/url-abuse
do not crash if the ressourcepath is empty
parent
c2889239ad
commit
7320aecb7f
|
@ -207,7 +207,8 @@ def get_urls(url, depth=1):
|
||||||
base += ':{}'.format(port)
|
base += ':{}'.format(port)
|
||||||
if not meta_redir_url.startswith('/'):
|
if not meta_redir_url.startswith('/'):
|
||||||
# relative redirect. resource_path has the initial '/'
|
# relative redirect. resource_path has the initial '/'
|
||||||
base += fex.get_resource_path()
|
if fex.get_resource_path() is not None:
|
||||||
|
base += fex.get_resource_path()
|
||||||
if not base.endswith('/'):
|
if not base.endswith('/'):
|
||||||
base += '/'
|
base += '/'
|
||||||
meta_redir_url = base + meta_redir_url
|
meta_redir_url = base + meta_redir_url
|
||||||
|
|
Loading…
Reference in New Issue