mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-03 12:43:10 +03:00
Minor fix related to Issue #94
This commit is contained in:
parent
1606f5857b
commit
0e21cb54de
|
@ -36,7 +36,7 @@ def _adjust(condition, getRatioValue):
|
||||||
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
|
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
|
||||||
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
|
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
|
||||||
# itself
|
# itself
|
||||||
retVal = not condition if kb.negativeLogic and condition is not None else condition
|
retVal = not condition if kb.negativeLogic and condition is not None and not getRatioValue else condition
|
||||||
else:
|
else:
|
||||||
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
|
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user