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

Skip to content

Commit 4e65ff4

Browse files
committed
Proper patch for #4591
1 parent 1e8bf1c commit 4e65ff4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.3.6"
21+
VERSION = "1.5.3.7"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/comparison.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,13 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
151151
seq1 = seq1.split("\n")
152152
seq2 = seq2.split("\n")
153153

154+
key = None
155+
else:
156+
key = (hash(seq1), hash(seq2))
157+
154158
seqMatcher.set_seq1(seq1)
155159
seqMatcher.set_seq2(seq2)
156160

157-
try:
158-
key = (hash(seq1), hash(seq2))
159-
except:
160-
key = None
161-
162161
if key in kb.cache.comparison:
163162
ratio = kb.cache.comparison[key]
164163
else:

0 commit comments

Comments
 (0)