mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
StringIO is bad m'kay (python3 this and that)
This commit is contained in:
@@ -5,10 +5,10 @@ Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
|
||||
See the file 'LICENSE' for copying permission
|
||||
"""
|
||||
|
||||
import io
|
||||
import os
|
||||
import posixpath
|
||||
import re
|
||||
import StringIO
|
||||
import tempfile
|
||||
import urlparse
|
||||
|
||||
@@ -97,7 +97,7 @@ class Web:
|
||||
content = f.read()
|
||||
|
||||
if content is not None:
|
||||
stream = StringIO.StringIO(content) # string content
|
||||
stream = io.BytesIO(content) # string content
|
||||
|
||||
return self._webFileStreamUpload(stream, destFileName, directory)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user