mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
I believe that this was a wrong decision. Patching
This commit is contained in:
parent
17350fb4ec
commit
bc215d1b19
|
@ -38,9 +38,9 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||||
|
|
||||||
if headers:
|
if headers:
|
||||||
if "location" in headers:
|
if "location" in headers:
|
||||||
retVal = headers.getheaders("location")[0].split("?")[0]
|
retVal = headers.getheaders("location")[0]
|
||||||
elif "uri" in headers:
|
elif "uri" in headers:
|
||||||
retVal = headers.getheaders("uri")[0].split("?")[0]
|
retVal = headers.getheaders("uri")[0]
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user