Link to new vdb in references output

This commit is contained in:
ethicalhack3r
2014-09-18 10:24:55 +02:00
parent 771f4ae766
commit 884a19b13d
7 changed files with 11 additions and 3 deletions

View File

@@ -43,8 +43,8 @@ class Vulnerability
def self.load_from_json_item(json_item)
references = {}
[:url, :cve, :secunia, :osvdb, :metasploit, :exploitdb].each do |key|
references[key] = json_item[key.to_s].split(',') if json_item[key.to_s]
[:id, :url, :cve, :secunia, :osvdb, :metasploit, :exploitdb].each do |key|
references[key] = json_item[key.to_s].to_s.split(',') if json_item[key.to_s]
end
new(