From 8c32b3653b583f1ae49b3de55dfb7045a63faa43 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 20 Nov 2011 20:27:30 +0000 Subject: [PATCH] minor update of false positive check (in considerable amount of cases minus char is filtered/used for other means) --- lib/controller/checks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index c2633dea0..a7d4a5dea 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -556,9 +556,9 @@ def checkFalsePositives(injection): retVal = None elif checkBooleanExpression("%d=%d" % (randInt1, randInt2)): retVal = None - elif not checkBooleanExpression("%d=(%d-%d)" % (abs(randInt1 - randInt2), max(randInt1, randInt2), min(randInt1, randInt2))): + if not checkBooleanExpression("%d=(%d+%d)" % (randInt1 + randInt2, randInt1, randInt2)): retVal = None - elif checkBooleanExpression("(%d+%d)=(%d-%d)" % (randInt1, randInt2, randInt1, randInt2)): + elif checkBooleanExpression("%d=%d" % (randInt2, randInt1)): retVal = None if retVal is None: