mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
Minor bug fix to properly merge options from .conf file (-c) with command line switches
This commit is contained in:
parent
db844c1785
commit
4b79227b5a
|
@ -1298,7 +1298,8 @@ def __mergeOptions(inputOptions):
|
|||
inputOptionsItems = inputOptions.__dict__.items()
|
||||
|
||||
for key, value in inputOptionsItems:
|
||||
if not conf.has_key(key) or conf[key] is None or value is not None:
|
||||
if key not in conf or (conf[key] is False and value is True) or \
|
||||
value not in (None, False):
|
||||
conf[key] = value
|
||||
|
||||
def __setTrafficOutputFP():
|
||||
|
|
Loading…
Reference in New Issue
Block a user