mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch for an Issue #719
This commit is contained in:
parent
2beeb178fb
commit
f558b800ac
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user