mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
Minor bug fix to properly merge options from .conf file (-c) with command line switches
This commit is contained in:
@@ -1298,7 +1298,8 @@ def __mergeOptions(inputOptions):
|
|||||||
inputOptionsItems = inputOptions.__dict__.items()
|
inputOptionsItems = inputOptions.__dict__.items()
|
||||||
|
|
||||||
for key, value in inputOptionsItems:
|
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
|
conf[key] = value
|
||||||
|
|
||||||
def __setTrafficOutputFP():
|
def __setTrafficOutputFP():
|
||||||
|
|||||||
Reference in New Issue
Block a user