mirror of https://github.com/CIRCL/url-abuse
Fix redirect output if the path is relative.
parent
00dea1c497
commit
99176cb91f
|
@ -207,6 +207,10 @@ def get_urls(url, depth=1):
|
|||
base += ':{}'.format(port)
|
||||
if not base.endswith('/'):
|
||||
base += '/'
|
||||
if not meta_redir_url.startswith('/'):
|
||||
base += fex.resource_path()
|
||||
if not base.endswith('/'):
|
||||
base += '/'
|
||||
meta_redir_url = base + meta_redir_url
|
||||
for url in get_urls(meta_redir_url, depth):
|
||||
yield url
|
||||
|
|
Loading…
Reference in New Issue