Skip to content

Commit

Permalink
Merge pull request #17726 from mpoindexter/feature/fix-wrong-plugin-i…
Browse files Browse the repository at this point in the history
…nstance

Fix an error when applying a profile then making config changes
  • Loading branch information
andresriancho committed Apr 7, 2019
2 parents 6b745bd + 68e1d31 commit 8cefae1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions w3af/core/controllers/core_helpers/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,14 @@ def create_instances(self):
plugin_name)
if plugin_instance not in self.plugins[plugin_type]:
self.plugins[plugin_type].append(plugin_instance)
else:
# Ensure that the latest settings are applied to the instance
# that will be used for execution
for existing_inst in self.plugins[plugin_type]:
if existing_inst.get_name() == plugin_name and plugin_name in self._plugins_options[plugin_type].keys():
custom_options = self._plugins_options[plugin_type][plugin_name]
existing_inst.set_options(custom_options)


def plugin_factory(self):
"""
Expand Down

0 comments on commit 8cefae1

Please sign in to comment.