Land #5787, WPVDB check for msftidy

bug/bundler_fix
William Vu 2015-07-31 10:23:39 -05:00
commit 8dbaec2077
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 4 additions and 0 deletions

View File

@ -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