mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Fixes #1440
This commit is contained in:
parent
a1a7161fab
commit
29edb4f75c
|
@ -2809,7 +2809,13 @@ def unArrayizeValue(value):
|
|||
"""
|
||||
|
||||
if isListLike(value):
|
||||
value = value[0] if len(value) > 0 else None
|
||||
if not value:
|
||||
value = None
|
||||
elif len(value) == 1 and not isListLike(value[0]):
|
||||
value = value[0]
|
||||
else:
|
||||
_ = filter(lambda _: _ is not None, (_ for _ in flattenValue(value)))
|
||||
value = _[0] if len(_) > 0 else None
|
||||
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user