Skip to content

Commit 8c32b36

Browse files
committed
minor update of false positive check (in considerable amount of cases minus char is filtered/used for other means)
1 parent 440b7ef commit 8c32b36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/controller/checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ def checkFalsePositives(injection):
556556
retVal = None
557557
elif checkBooleanExpression("%d=%d" % (randInt1, randInt2)):
558558
retVal = None
559-
elif not checkBooleanExpression("%d=(%d-%d)" % (abs(randInt1 - randInt2), max(randInt1, randInt2), min(randInt1, randInt2))):
559+
if not checkBooleanExpression("%d=(%d+%d)" % (randInt1 + randInt2, randInt1, randInt2)):
560560
retVal = None
561-
elif checkBooleanExpression("(%d+%d)=(%d-%d)" % (randInt1, randInt2, randInt1, randInt2)):
561+
elif checkBooleanExpression("%d=%d" % (randInt2, randInt1)):
562562
retVal = None
563563

564564
if retVal is None:

0 commit comments

Comments
 (0)