mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 13:41:29 +00:00
minor fix for None results
This commit is contained in:
@@ -48,6 +48,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||||||
|
|
||||||
logger.log(7, responseMsg)
|
logger.log(7, responseMsg)
|
||||||
|
|
||||||
|
if result:
|
||||||
if "location" in headers:
|
if "location" in headers:
|
||||||
result.redurl = headers.getheaders("location")[0].split("?")[0]
|
result.redurl = headers.getheaders("location")[0].split("?")[0]
|
||||||
elif "uri" in headers:
|
elif "uri" in headers:
|
||||||
@@ -60,7 +61,6 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||||||
if "set-cookie" in headers:
|
if "set-cookie" in headers:
|
||||||
result.setcookie = headers["set-cookie"].split("; path")[0]
|
result.setcookie = headers["set-cookie"].split("; path")[0]
|
||||||
|
|
||||||
if result:
|
|
||||||
result.redcode = code
|
result.redcode = code
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user