mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-26 00:33:14 +03:00
Subtle (sneaky) bug removed (related to #4051) - False or '' results with ''
This commit is contained in:
parent
bcb9482724
commit
4c5cb9e0d4
|
@ -1123,8 +1123,10 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
|
||||||
|
|
||||||
if boolean:
|
if boolean:
|
||||||
retVal = retVal.strip().upper() == 'Y'
|
retVal = retVal.strip().upper() == 'Y'
|
||||||
|
else:
|
||||||
|
retVal = retVal or ""
|
||||||
|
|
||||||
return retVal or ""
|
return retVal
|
||||||
|
|
||||||
def setTechnique(technique):
|
def setTechnique(technique):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.12.31"
|
VERSION = "1.3.12.32"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user