Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90ad914

Browse files
committed
Patch related to the #1477
1 parent 5ff5929 commit 90ad914

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
@@ -160,7 +160,7 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
160160
# If the url is stable and we did not set yet the match ratio and the
161161
# current injected value changes the url page content
162162
if kb.matchRatio is None:
163-
if ratio >= LOWER_RATIO_BOUND and ratio <= UPPER_RATIO_BOUND:
163+
if (count or ratio >= LOWER_RATIO_BOUND) and ratio <= UPPER_RATIO_BOUND:
164164
kb.matchRatio = ratio
165165
logger.debug("setting match ratio for current parameter to %.3f" % kb.matchRatio)
166166

0 commit comments

Comments
 (0)