Land #5787, WPVDB check for msftidy
commit
8dbaec2077
|
@ -191,6 +191,8 @@ class Msftidy
|
|||
warn("Invalid US-CERT-VU reference") if value !~ /^\d+$/
|
||||
when 'ZDI'
|
||||
warn("Invalid ZDI reference") if value !~ /^\d{2}-\d{3}$/
|
||||
when 'WPVDB'
|
||||
warn("Invalid WPVDB reference") if value !~ /^\d+$/
|
||||
when 'URL'
|
||||
if value =~ /^http:\/\/www\.osvdb\.org/
|
||||
warn("Please use 'OSVDB' for '#{value}'")
|
||||
|
@ -204,6 +206,8 @@ class Msftidy
|
|||
warn("Please use 'EDB' for '#{value}'")
|
||||
elsif value =~ /^http:\/\/www\.kb\.cert\.org\/vuls\/id\//
|
||||
warn("Please use 'US-CERT-VU' for '#{value}'")
|
||||
elsif value =~ /^https:\/\/wpvulndb\.com\/vulnerabilities\//
|
||||
warn("Please use 'WPVDB' for '#{value}'")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue