mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-25 08:59:02 +00:00
Patch for an Issue #716
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user