mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Proper fix
This commit is contained in:
parent
dba2f74588
commit
c3eb82e60b
1 changed files with 6 additions and 1 deletions
|
|
@ -673,7 +673,12 @@ def readInput(message, default=None):
|
|||
message += " "
|
||||
|
||||
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)
|
||||
|
||||
debugMsg = "used the default behaviour, running in batch mode"
|
||||
|
|
|
|||
Loading…
Reference in a new issue