Skip to content

Commit 0e21cb5

Browse files
committed
Minor fix related to Issue sqlmapproject#94
1 parent 1606f58 commit 0e21cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _adjust(condition, getRatioValue):
3636
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
3737
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
3838
# itself
39-
retVal = not condition if kb.negativeLogic and condition is not None else condition
39+
retVal = not condition if kb.negativeLogic and condition is not None and not getRatioValue else condition
4040
else:
4141
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)
4242

0 commit comments

Comments
 (0)