From 5fb8ae9d3ce82b4805472b13ec5342bb662f7cc0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 22 Oct 2015 19:59:16 +0200 Subject: [PATCH] Fixes #1479 --- 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 e58da901b03..61f503a68df 100644 --- a/lib/request/comparison.py +++ b/lib/request/comparison.py @@ -53,6 +53,8 @@ def _comparison(page, headers, code, getRatioValue, pageLength): if page is None and pageLength is None: return None + count = 0 + seqMatcher = threadData.seqMatcher seqMatcher.set_seq1(kb.pageTemplate) @@ -122,7 +124,6 @@ def _comparison(page, headers, code, getRatioValue, pageLength): seq1 = seq1.replace(REFLECTED_VALUE_MARKER, "") seq2 = seq2.replace(REFLECTED_VALUE_MARKER, "") - count = 0 while count < min(len(seq1), len(seq2)): if seq1[count] == seq2[count]: count += 1