Skip to content

Commit cf7022b

Browse files
committed
Minor patch (empty input without newline)
1 parent 4c5cb9e commit cf7022b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/core/common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,10 @@ def readInput(message, default=None, checkBatch=True, boolean=False):
11041104
dataToStdout("%s" % message, forceOutput=not kb.wizardMode, bold=True)
11051105
kb.prependFlag = False
11061106

1107-
retVal = _input().strip() or default
1107+
retVal = _input()
1108+
if not retVal: # Note: Python doesn't print newline on empty input
1109+
dataToStdout("\n")
1110+
retVal = retVal.strip() or default
11081111
retVal = getUnicode(retVal, encoding=sys.stdin.encoding) if retVal else retVal
11091112
except:
11101113
try:

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.32"
21+
VERSION = "1.3.12.33"
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)