mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch for an Issue #716
This commit is contained in:
parent
5e9334ab79
commit
c50560c3a6
|
@ -118,7 +118,11 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
req.headers[HTTP_HEADER.HOST] = getHostHeader(redurl)
|
||||
if headers and HTTP_HEADER.SET_COOKIE in headers:
|
||||
req.headers[HTTP_HEADER.COOKIE] = headers[HTTP_HEADER.SET_COOKIE].split(conf.cookieDel or DEFAULT_COOKIE_DELIMITER)[0]
|
||||
result = urllib2.HTTPRedirectHandler.http_error_302(self, req, fp, code, msg, headers)
|
||||
try:
|
||||
result = urllib2.HTTPRedirectHandler.http_error_302(self, req, fp, code, msg, headers)
|
||||
except:
|
||||
redurl = None
|
||||
result = fp
|
||||
else:
|
||||
result = fp
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user