Skip to content

Commit bb02eef

Browse files
committed
1 parent 8c8aae9 commit bb02eef

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/core/common.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,15 @@ def isVersionWithin(versionList):
587587

588588
@staticmethod
589589
def isVersionGreaterOrEqualThan(version):
590-
return Backend.getVersion() is not None and version is not None and distutils.version.LooseVersion(str(Backend.getVersion()) or ' ') >= distutils.version.LooseVersion(str(version) or ' ')
590+
retVal = False
591+
592+
if Backend.getVersion() is not None and version is not None:
593+
try:
594+
retVal = distutils.version.LooseVersion(Backend.getVersion()) >= distutils.version.LooseVersion(version)
595+
except:
596+
retVal = str(Backend.getVersion()) >= str(version)
597+
598+
return retVal
591599

592600
@staticmethod
593601
def isOs(os):

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.4.12.35"
21+
VERSION = "1.4.12.36"
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)

0 commit comments

Comments
 (0)