mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 21:51:29 +00:00
minor fix
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user