mirror of https://github.com/CIRCL/url-abuse
do not crash if the ressourcepath is empty
parent
c2889239ad
commit
7320aecb7f
|
@ -207,6 +207,7 @@ 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 '/'
|
||||||
|
if fex.get_resource_path() is not None:
|
||||||
base += fex.get_resource_path()
|
base += fex.get_resource_path()
|
||||||
if not base.endswith('/'):
|
if not base.endswith('/'):
|
||||||
base += '/'
|
base += '/'
|
||||||
|
|
Loading…
Reference in New Issue