Skip to content

Commit b2c8ba1

Browse files
committed
Minor just in case update
1 parent 9568ee3 commit b2c8ba1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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.1.37"
21+
VERSION = "1.5.1.38"
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/parse/handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, banner, info):
3030
def _feedInfo(self, key, value):
3131
value = sanitizeStr(value)
3232

33-
if value in (None, "None"):
33+
if value in (None, "None", ""):
3434
return
3535

3636
if key == "dbmsVersion":
@@ -62,10 +62,10 @@ def startElement(self, name, attrs):
6262
self._techVersion = sanitizeStr(attrs.get("tech_version"))
6363
self._sp = sanitizeStr(attrs.get("sp"))
6464

65-
if self._dbmsVersion.isdigit():
65+
if self._dbmsVersion and self._dbmsVersion.isdigit():
6666
self._feedInfo("dbmsVersion", self._match.group(int(self._dbmsVersion)))
6767

68-
if self._techVersion.isdigit():
68+
if self._techVersion and self._techVersion.isdigit():
6969
self._feedInfo("technology", "%s %s" % (attrs.get("technology"), self._match.group(int(self._techVersion))))
7070
else:
7171
self._feedInfo("technology", attrs.get("technology"))

0 commit comments

Comments
 (0)