mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
minor fix (when redirected path has non-ASCII char and conf.url is unicode) and bits along with pieces
This commit is contained in:
parent
595f69fa2c
commit
333f8057a5
3 changed files with 7 additions and 4 deletions
|
|
@ -78,7 +78,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
redurl = self._get_header_redirect(headers)
|
||||
|
||||
if not urlparse.urlsplit(redurl).netloc:
|
||||
redurl = urlparse.urljoin(conf.url, redurl)
|
||||
redurl = urlparse.urljoin(req.get_full_url(), redurl)
|
||||
|
||||
self._infinite_loop_check(req)
|
||||
self._ask_redirect_choice(code, redurl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue