mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
better way for dealing with relative paths
This commit is contained in:
@@ -104,6 +104,9 @@ class Connect:
|
||||
retrying = kwargs.get('retrying', False)
|
||||
redirecting = kwargs.get('redirecting', False)
|
||||
|
||||
if not urlparse.urlsplit(url).netloc:
|
||||
url = urlparse.urljoin(conf.url, url)
|
||||
|
||||
# flag to know if we are dealing with the same target host
|
||||
target = reduce(lambda x, y: x == y, map(lambda x: urlparse.urlparse(x).netloc.split(':')[0], [url, conf.url]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user