mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
fixed threading bug (difflib :)
This commit is contained in:
parent
6712b19df2
commit
91dd609e26
3 changed files with 9 additions and 0 deletions
|
|
@ -65,9 +65,15 @@ def comparison(page, headers=None, getSeqMatcher=False):
|
|||
else:
|
||||
return False
|
||||
|
||||
if conf.seqLock:
|
||||
conf.seqLock.acquire()
|
||||
|
||||
conf.seqMatcher.set_seq2(page)
|
||||
ratio = round(conf.seqMatcher.ratio(), 3)
|
||||
|
||||
if conf.seqLock:
|
||||
conf.seqLock.release()
|
||||
|
||||
# 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 conf.matchRatio is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue