mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Patch related to the #1403
This commit is contained in:
parent
c05c0ff435
commit
c4f9e66a6f
|
@ -909,15 +909,16 @@ def readInput(message, default=None, checkBatch=True):
|
|||
answer = item.split('=')[1] if len(item.split('=')) > 1 else None
|
||||
if answer and question.lower() in message.lower():
|
||||
retVal = getUnicode(answer, UNICODE_ENCODING)
|
||||
elif answer is None and retVal:
|
||||
retVal = "%s,%s" % (retVal, getUnicode(item, UNICODE_ENCODING))
|
||||
|
||||
if retVal:
|
||||
infoMsg = "%s%s" % (message, retVal)
|
||||
logger.info(infoMsg)
|
||||
|
||||
debugMsg = "used the given answer"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
break
|
||||
|
||||
if retVal is None:
|
||||
if checkBatch and conf.get("batch"):
|
||||
if isListLike(default):
|
||||
|
|
Loading…
Reference in New Issue
Block a user