mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-09 17:51:33 +00:00
Minor bug fix for a traceback
This commit is contained in:
parent
1d5050d577
commit
aa8a20d241
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue