More small tweaks to import/export of attempts
parent
25fee46020
commit
64e8956319
|
@ -1008,7 +1008,7 @@ class DBManager
|
|||
info[k] = opts[k] if opts[k]
|
||||
end
|
||||
|
||||
return unless info[:attempted_at] and info.has_key?(:exploited)
|
||||
return unless info[:attempted_at]
|
||||
|
||||
vuln.vuln_attempts.create(info)
|
||||
}
|
||||
|
|
|
@ -529,12 +529,12 @@ class Export
|
|||
# Vuln details sub-elements
|
||||
report_file.write(" <vuln_details>\n")
|
||||
e.vuln_details.find(:all).each do |d|
|
||||
report_file.write(" <vuln_detail>\n")
|
||||
report_file.write(" <vuln_detail>\n")
|
||||
d.attributes.each_pair do |k,v|
|
||||
el = create_xml_element(k,v)
|
||||
report_file.write(" #{el}\n")
|
||||
end
|
||||
report_file.write(" </vuln_detail>\n")
|
||||
report_file.write(" </vuln_detail>\n")
|
||||
end
|
||||
report_file.write(" </vuln_details>\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue