mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
fix for a bug reported by aboynes@gmail.com (for elt in self.a)
This commit is contained in:
parent
f774d8fea0
commit
0072c3af8e
|
@ -31,7 +31,7 @@ Daniele Bellucci <daniele.bellucci@gmail.com>
|
||||||
2006
|
2006
|
||||||
|
|
||||||
Anthony Boynes <aboynes@gmail.com>
|
Anthony Boynes <aboynes@gmail.com>
|
||||||
for reporting a bug
|
for reporting few bugs
|
||||||
|
|
||||||
Velky Brat <velkybrat@gmail.com>
|
Velky Brat <velkybrat@gmail.com>
|
||||||
for suggesting a minor enhancement to the bisection algorithm
|
for suggesting a minor enhancement to the bisection algorithm
|
||||||
|
|
|
@ -72,7 +72,10 @@ def comparison(page, getRatioValue=False, pageLength=None):
|
||||||
else:
|
else:
|
||||||
seqMatcher.set_seq1(getFilteredPageContent(seqMatcher.a, True) if conf.textOnly else seqMatcher.a)
|
seqMatcher.set_seq1(getFilteredPageContent(seqMatcher.a, True) if conf.textOnly else seqMatcher.a)
|
||||||
seqMatcher.set_seq2(getFilteredPageContent(page, True) if conf.textOnly else page)
|
seqMatcher.set_seq2(getFilteredPageContent(page, True) if conf.textOnly else page)
|
||||||
ratio = round(seqMatcher.quick_ratio(), 3)
|
if seqMatcher.a is None or seqMatcher.b is None:
|
||||||
|
ratio = None
|
||||||
|
else:
|
||||||
|
ratio = round(seqMatcher.quick_ratio(), 3)
|
||||||
|
|
||||||
# If the url is stable and we did not set yet the match ratio and the
|
# If the url is stable and we did not set yet the match ratio and the
|
||||||
# current injected value changes the url page content
|
# current injected value changes the url page content
|
||||||
|
|
Loading…
Reference in New Issue
Block a user