mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
I believe that this was a wrong decision. Patching
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user