updated the URL for the NVD CVE external link

Former-commit-id: 7bb12ada0d54613f4067b96fb94a47e874384183
This commit is contained in:
Jeremy Long
2014-05-03 10:58:41 -04:00
parent 2a4693f6ed
commit 8cbf3ffc6b

View File

@@ -329,20 +329,21 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
try { try {
dependency.addIdentifier("cpe", dependency.addIdentifier("cpe",
newCpe, newCpe,
String.format("http://web.nvd.nist.gov/view/vuln/search?cpe=%s", URLEncoder.encode(newCpe, "UTF-8"))); String.format(CPEAnalyzer.NVD_SEARCH_URL, URLEncoder.encode(newCpe, "UTF-8")));
dependency.addIdentifier("cpe", dependency.addIdentifier("cpe",
newCpe2, newCpe2,
String.format("http://web.nvd.nist.gov/view/vuln/search?cpe=%s", URLEncoder.encode(newCpe2, "UTF-8"))); String.format(CPEAnalyzer.NVD_SEARCH_URL, URLEncoder.encode(newCpe2, "UTF-8")));
dependency.addIdentifier("cpe", dependency.addIdentifier("cpe",
newCpe3, newCpe3,
String.format("http://web.nvd.nist.gov/view/vuln/search?cpe=%s", URLEncoder.encode(newCpe3, "UTF-8"))); String.format(CPEAnalyzer.NVD_SEARCH_URL, URLEncoder.encode(newCpe3, "UTF-8")));
dependency.addIdentifier("cpe", dependency.addIdentifier("cpe",
newCpe4, newCpe4,
String.format("http://web.nvd.nist.gov/view/vuln/search?cpe=%s", URLEncoder.encode(newCpe4, "UTF-8"))); String.format(CPEAnalyzer.NVD_SEARCH_URL, URLEncoder.encode(newCpe4, "UTF-8")));
} catch (UnsupportedEncodingException ex) { } catch (UnsupportedEncodingException ex) {
LOGGER.log(Level.FINE, null, ex); LOGGER.log(Level.FINE, null, ex);
} }
} }
} }
} }
} }