mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
minor fix
This commit is contained in:
parent
97573693be
commit
bd2e036412
|
@ -230,7 +230,7 @@ class _baseDes(object):
|
|||
# there is no way to correctly decode the data into bytes.
|
||||
if _pythonMajorVersion < 3:
|
||||
if isinstance(data, unicode):
|
||||
data = str(data)
|
||||
data = data.encode('utf8')
|
||||
else:
|
||||
if isinstance(data, str):
|
||||
# Only accept ascii unicode values.
|
||||
|
|
Loading…
Reference in New Issue
Block a user