From 86c4650058306692b1ac91f9bbf0f3c714487f5d Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 15 Mar 2012 17:12:24 +0000 Subject: [PATCH] Minor bug fix - revert --- lib/request/comparison.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 1490a1587..c2c8558b8 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -36,7 +36,8 @@ def comparison(page, headers, code=None, getRatioValue=False, pageLength=None): seqMatcher.set_seq1(kb.pageTemplate) def checkNegativeLogic(condition): - return not condition if kb.negativeLogic else condition + condition = not condition if kb.negativeLogic else condition + return condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO) if any([conf.string, conf.regexp]): rawResponse = "%s%s" % (listToStrValue(headers.headers if headers else ""), page)