mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Minor update for an Issue #288
This commit is contained in:
parent
ed1b5d0ada
commit
c0fc12beb2
|
@ -74,6 +74,8 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||||
content = None
|
content = None
|
||||||
redurl = self._get_header_redirect(headers)
|
redurl = self._get_header_redirect(headers)
|
||||||
|
|
||||||
|
kb.httpErrorCodes[code] = kb.httpErrorCodes.get(code, 0) + 1
|
||||||
|
|
||||||
if redurl:
|
if redurl:
|
||||||
if not urlparse.urlsplit(redurl).netloc:
|
if not urlparse.urlsplit(redurl).netloc:
|
||||||
redurl = urlparse.urljoin(req.get_full_url(), redurl)
|
redurl = urlparse.urljoin(req.get_full_url(), redurl)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user