mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Proper fix
This commit is contained in:
@@ -673,7 +673,12 @@ def readInput(message, default=None):
|
|||||||
message += " "
|
message += " "
|
||||||
|
|
||||||
if conf.batch and default:
|
if conf.batch and default:
|
||||||
infoMsg = "%s%s" % (message, getUnicode(default, UNICODE_ENCODING))
|
if isinstance(default, (list, tuple, set)):
|
||||||
|
options = ",".join([getUnicode(opt, UNICODE_ENCODING) for opt in default])
|
||||||
|
else:
|
||||||
|
options = getUnicode(default, UNICODE_ENCODING)
|
||||||
|
|
||||||
|
infoMsg = "%s%s" % (message, options)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
debugMsg = "used the default behaviour, running in batch mode"
|
debugMsg = "used the default behaviour, running in batch mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user