mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Patch for an Issue #1099
This commit is contained in:
parent
0c4d63fb00
commit
7bcb3ce599
|
@ -3278,7 +3278,10 @@ def expandMnemonics(mnemonics, parser, args):
|
||||||
if opt.startswith(name):
|
if opt.startswith(name):
|
||||||
options[opt] = option
|
options[opt] = option
|
||||||
|
|
||||||
if name in options:
|
if not options:
|
||||||
|
warnMsg = "mnemonic '%s' can't be resolved" % name
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
elif name in options:
|
||||||
found = name
|
found = name
|
||||||
debugMsg = "mnemonic '%s' resolved to %s). " % (name, found)
|
debugMsg = "mnemonic '%s' resolved to %s). " % (name, found)
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
@ -3288,6 +3291,7 @@ def expandMnemonics(mnemonics, parser, args):
|
||||||
warnMsg += "Resolved to shortest of those ('%s')" % found
|
warnMsg += "Resolved to shortest of those ('%s')" % found
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
if found:
|
||||||
found = options[found]
|
found = options[found]
|
||||||
else:
|
else:
|
||||||
found = pointer.current[0]
|
found = pointer.current[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user