From 3c110b362090b5d66404a3e4e66e9d517487e447 Mon Sep 17 00:00:00 2001 From: stamparm Date: Tue, 30 Apr 2013 16:40:16 +0200 Subject: [PATCH] Minor bug fix --- lib/utils/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index f465c4228..7b226751a 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -72,7 +72,7 @@ def crawl(target): href = tag.get("href") if hasattr(tag, "get") else tag.group("href") if href: - url = urlparse.urljoin(target, href) + url = urlparse.urljoin(current, href) # flag to know if we are dealing with the same target host _ = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], (url, target)))