Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c110b3

Browse files
committed
Minor bug fix
1 parent bdb9219 commit 3c110b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utils/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def crawlThread():
7272
href = tag.get("href") if hasattr(tag, "get") else tag.group("href")
7373

7474
if href:
75-
url = urlparse.urljoin(target, href)
75+
url = urlparse.urljoin(current, href)
7676

7777
# flag to know if we are dealing with the same target host
7878
_ = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], (url, target)))

0 commit comments

Comments
 (0)