mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
fixed issue with passing a nested literal value into a default module input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user