export notes associated to a vuln
in addition to ntoes asscoiated directly to a host, the XML export will now export notes that are tied to a vuln MSP-12183bug/bundler_fix
parent
885469ca52
commit
2389185376
|
@ -374,6 +374,18 @@ class Export
|
|||
report_file.write(" #{el}\n")
|
||||
end
|
||||
|
||||
# Notes attached to vulns instead of the host
|
||||
report_file.write(" <notes>\n")
|
||||
@notes.where(vuln_id: e.id).each do |note|
|
||||
report_file.write(" <note>\n")
|
||||
note.attributes.each_pair do |k,v|
|
||||
el = create_xml_element(k,v)
|
||||
report_file.write(" #{el}\n")
|
||||
end
|
||||
report_file.write(" </note>\n")
|
||||
end
|
||||
report_file.write(" </notes>\n")
|
||||
|
||||
# References
|
||||
report_file.write(" <refs>\n")
|
||||
e.refs.each do |ref|
|
||||
|
|
Loading…
Reference in New Issue