lib/arii/xmlseedreader.rb in arii-1.2.1 vs lib/arii/xmlseedreader.rb in arii-1.2.2
- old
+ new
@@ -15,10 +15,10 @@
@doc = Nokogiri::XML(open(@seed[:payload][:uri]))
@doc.remove_namespaces!
@doc.xpath(@seed[:payload][:query]).each do |element|
begin
object = @help.deep_copy @agent[:payload]
- object.each_pair do |key,value|
+ object.each_pair do |key, value|
variables = @help.identify_variables(object[key])
variables.each do |v|
element.xpath(@seed[:payload][:selectors][v]).each do |el|
object[key].gsub!("%{#{v}}", el.content)
end
\ No newline at end of file