remove more refs
This commit is contained in:
parent
1b31e0a63e
commit
5b4f96eeac
|
@ -178,8 +178,6 @@ class Msftidy
|
|||
case identifier
|
||||
when 'CVE'
|
||||
warn("Invalid CVE format: '#{value}'") if value !~ /^\d{4}\-\d{4,}$/
|
||||
when 'OSVDB'
|
||||
warn("Invalid OSVDB format: '#{value}'") if value !~ /^\d+$/
|
||||
when 'BID'
|
||||
warn("Invalid BID format: '#{value}'") if value !~ /^\d+$/
|
||||
when 'MSB'
|
||||
|
@ -197,9 +195,7 @@ class Msftidy
|
|||
when 'PACKETSTORM'
|
||||
warn("Invalid PACKETSTORM reference") if value !~ /^\d+$/
|
||||
when 'URL'
|
||||
if value =~ /^http:\/\/www\.osvdb\.org/
|
||||
warn("Please use 'OSVDB' for '#{value}'")
|
||||
elsif value =~ /^http:\/\/cvedetails\.com\/cve/
|
||||
if value =~ /^http:\/\/cvedetails\.com\/cve/
|
||||
warn("Please use 'CVE' for '#{value}'")
|
||||
elsif value =~ /^http:\/\/www\.securityfocus\.com\/bid\//
|
||||
warn("Please use 'BID' for '#{value}'")
|
||||
|
|
|
@ -24,7 +24,6 @@ require 'uri'
|
|||
def types
|
||||
{
|
||||
'ALL' => '',
|
||||
'OSVDB' => 'http://www.osvdb.org/#{in_ctx_val}',
|
||||
'CVE' => 'http://cvedetails.com/cve/#{in_ctx_val}/',
|
||||
'CWE' => 'http://cwe.mitre.org/data/definitions/#{in_ctx_val}.html',
|
||||
'BID' => 'http://www.securityfocus.com/bid/#{in_ctx_val}',
|
||||
|
|
Loading…
Reference in New Issue