mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-08 07:03:10 +03:00
minor fix for None results
This commit is contained in:
parent
4b784b03fd
commit
8fac4605a9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user