Minor update

This commit is contained in:
Your Name 2026-05-02 08:59:38 +02:00
parent 026e5d05f4
commit dfbba622fc
3 changed files with 5 additions and 8 deletions

View file

@ -439,10 +439,7 @@ def stdoutEncode(value):
if isinstance(value, (bytes, bytearray)):
value = getUnicode(value, encoding)
elif not isinstance(value, str):
# Non-string values (e.g. dicts passed through the REST API path,
# where the overridden sys.stdout.write JSON-encodes the value)
# must be returned unchanged — stringifying them via str() yields
# Python repr() output that the API consumer cannot parse.
# Reference: https://github.com/sqlmapproject/sqlmap/issues/6054
return value
try: