mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
Minor bug fix for a traceback
This commit is contained in:
parent
1d5050d577
commit
aa8a20d241
|
@ -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):
|
||||
raise ValueError("pyDes can only work with bytes, not Unicode strings.")
|
||||
data = str(data)
|
||||
else:
|
||||
if isinstance(data, str):
|
||||
# Only accept ascii unicode values.
|
||||
|
|
Loading…
Reference in New Issue
Block a user