mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Patch for an Issue #719
This commit is contained in:
@@ -8,6 +8,8 @@ See the file 'doc/COPYING' for copying permission
|
||||
import urllib2
|
||||
import urlparse
|
||||
|
||||
from StringIO import StringIO
|
||||
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
@@ -123,6 +125,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||
except:
|
||||
redurl = None
|
||||
result = fp
|
||||
fp.read = StringIO("").read
|
||||
else:
|
||||
result = fp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user