mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
StringIO is bad m'kay (python3 this and that)
This commit is contained in:
parent
4b75ca15e8
commit
8d89389c36
9 changed files with 23 additions and 26 deletions
|
|
@ -5,13 +5,12 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
|||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
import io
|
||||
import time
|
||||
import types
|
||||
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
|
||||
|
|
@ -165,7 +164,7 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler):
|
|||
except:
|
||||
redurl = None
|
||||
result = fp
|
||||
fp.read = StringIO("").read
|
||||
fp.read = io.BytesIO("").read
|
||||
else:
|
||||
result = fp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue