mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
proper update regarding last commit
This commit is contained in:
parent
850328df6c
commit
dd01d66f13
|
@ -30,7 +30,6 @@ from lib.core.common import pushValue
|
||||||
from lib.core.common import randomInt
|
from lib.core.common import randomInt
|
||||||
from lib.core.common import randomStr
|
from lib.core.common import randomStr
|
||||||
from lib.core.common import readInput
|
from lib.core.common import readInput
|
||||||
from lib.core.common import removeDynamicContent
|
|
||||||
from lib.core.common import showStaticWords
|
from lib.core.common import showStaticWords
|
||||||
from lib.core.common import trimAlphaNum
|
from lib.core.common import trimAlphaNum
|
||||||
from lib.core.common import wasLastRequestDBMSError
|
from lib.core.common import wasLastRequestDBMSError
|
||||||
|
|
|
@ -677,7 +677,7 @@ def readInput(message, default=None):
|
||||||
elif message[-1] == ']':
|
elif message[-1] == ']':
|
||||||
message += " "
|
message += " "
|
||||||
|
|
||||||
if conf.batch and default:
|
if conf.batch and default is not None:
|
||||||
if isinstance(default, (list, tuple, set)):
|
if isinstance(default, (list, tuple, set)):
|
||||||
options = ",".join([getUnicode(opt, UNICODE_ENCODING) for opt in default])
|
options = ",".join([getUnicode(opt, UNICODE_ENCODING) for opt in default])
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -232,7 +232,7 @@ class Connect:
|
||||||
msg += "also on the redirection got from the application\n"
|
msg += "also on the redirection got from the application\n"
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
choice = readInput(msg, default=None)
|
choice = readInput(msg, default="")
|
||||||
|
|
||||||
if not choice:
|
if not choice:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user