Skip to content

Commit 4c5cb9e

Browse files
committed
Subtle (sneaky) bug removed (related to #4051) - False or '' results with ''
1 parent bcb9482 commit 4c5cb9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/core/common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,10 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
11231123

11241124
if boolean:
11251125
retVal = retVal.strip().upper() == 'Y'
1126+
else:
1127+
retVal = retVal or ""
11261128

1127-
return retVal or ""
1129+
return retVal
11281130

11291131
def setTechnique(technique):
11301132
"""

lib/core/settings.py

+1-1
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.3.12.31"
21+
VERSION = "1.3.12.32"
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)