From 99176cb91fbe233e1f32866ddf983ad3a9cd4e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 19 Mar 2015 13:16:08 +0100 Subject: [PATCH] Fix redirect output if the path is relative. --- url_abuse_async.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/url_abuse_async.py b/url_abuse_async.py index 6210135..e4a8dd7 100644 --- a/url_abuse_async.py +++ b/url_abuse_async.py @@ -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