fix link nvd on hipchat (#613)

This commit is contained in:
kazuminn
2018-03-13 12:32:55 +09:00
committed by Kota Kanbe
parent f0137a3695
commit 028508c1f7

View File

@@ -31,7 +31,7 @@ func (w HipChatWriter) Write(rs ...models.ScanResult) (err error) {
severity = "?"
}
message = `<a href="https://nvd.nist.gov/vuln/detail\">` + vinfo.CveID + "</a>" + "<br/>" + strconv.FormatFloat(maxCvss.Value.Score, 'f', 1, 64) + " " + "(" + severity + ")" + "<br/>" + vinfo.Summaries(config.Conf.Lang, r.Family)[0].Value
message = `<a href="https://nvd.nist.gov/vuln/detail\` + vinfo.CveID + ">" + vinfo.CveID + ">" + vinfo.CveID + "</a>" + "<br/>" + strconv.FormatFloat(maxCvss.Value.Score, 'f', 1, 64) + " " + "(" + severity + ")" + "<br/>" + vinfo.Summaries(config.Conf.Lang, r.Family)[0].Value
err = postMessage(conf.Room, conf.AuthToken, message)
if err != nil {