mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +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 urllib2
|
||||||
import urlparse
|
import urlparse
|
||||||
|
|
||||||
|
from StringIO import StringIO
|
||||||
|
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
|
@ -123,6 +125,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
||||||
except:
|
except:
|
||||||
redurl = None
|
redurl = None
|
||||||
result = fp
|
result = fp
|
||||||
|
fp.read = StringIO("").read
|
||||||
else:
|
else:
|
||||||
result = fp
|
result = fp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user