mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
proper fix
This commit is contained in:
parent
9957881040
commit
fe186cde55
|
@ -460,14 +460,15 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
|
|||
conf.verbose = popValue()
|
||||
|
||||
if expected == EXPECTED.BOOL:
|
||||
if isinstance(value, basestring):
|
||||
value = value.lower()
|
||||
if value in ("true", "false"):
|
||||
if value:
|
||||
if isinstance(value, basestring):
|
||||
value = value.lower()
|
||||
if value in ("true", "false"):
|
||||
value = bool(value)
|
||||
else:
|
||||
value = value != "0"
|
||||
elif isinstance(value, int):
|
||||
value = bool(value)
|
||||
else:
|
||||
value = value and value != "0"
|
||||
elif isinstance(value, int):
|
||||
value = bool(value)
|
||||
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user