From 90ad914c1eb4955bbcfae2edc5b8b4c41010c1f1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 22 Oct 2015 14:58:06 +0200 Subject: [PATCH] Patch related to the #1477 --- lib/request/comparison.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/comparison.py b/lib/request/comparison.py index 7028b364f..e58da901b 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -160,7 +160,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength): # If the url is stable and we did not set yet the match ratio and the # current injected value changes the url page content if kb.matchRatio is None: - if ratio >= LOWER_RATIO_BOUND and ratio <= UPPER_RATIO_BOUND: + if (count or ratio >= LOWER_RATIO_BOUND) and ratio <= UPPER_RATIO_BOUND: kb.matchRatio = ratio logger.debug("setting match ratio for current parameter to %.3f" % kb.matchRatio)