fixed issue with passing a nested literal value into a default module input

This commit is contained in:
Z. Cliffe Schreuders
2017-03-21 21:59:26 +00:00
parent e18ae5c5c9
commit f969cc8a42

View File

@@ -169,11 +169,11 @@ class ModuleReader
module_selector.write_to_module_with_id = 'vulnerabilitydefaultinput'
end
# check if we are being passed an input *literal value*
# check if we are being passed an input *literal value*, into a module selector
module_node.xpath('input/value').each do |input_value|
variable = input_value.xpath('../@into').to_s
value = input_value.text
(module_selector.default_inputs_literals[variable] ||= []).push(value)
(module_selector.received_inputs[variable] ||= []).push(value)
end
into = module_node.xpath('ancestor::default_input/@into').to_s