mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-10 09:49:06 +00:00
fix for a bug reported by ToR (AttributeError: 'NoneType' object has no attribute 'redcode')
This commit is contained in:
@@ -55,7 +55,8 @@ 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]
|
||||||
|
|
||||||
result.redcode = code
|
if result:
|
||||||
|
result.redcode = code
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user