mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-29 13:23:45 +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.
|
# there is no way to correctly decode the data into bytes.
|
||||||
if _pythonMajorVersion < 3:
|
if _pythonMajorVersion < 3:
|
||||||
if isinstance(data, unicode):
|
if isinstance(data, unicode):
|
||||||
data = str(data)
|
data = data.encode('utf8')
|
||||||
else:
|
else:
|
||||||
if isinstance(data, str):
|
if isinstance(data, str):
|
||||||
# Only accept ascii unicode values.
|
# Only accept ascii unicode values.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user