cmd/stcrashreceiver: Sanitize failure report fingerprints (#7840)

This commit is contained in:
Simon Frei
2021-07-22 11:16:24 +02:00
committed by GitHub
parent eeb7091180
commit 1ae5ac7d0b
2 changed files with 11 additions and 5 deletions
+2 -1
View File
@@ -89,7 +89,8 @@ func handleFailureFn(dsn string) func(w http.ResponseWriter, req *http.Request)
pkt.Extra = raven.Extra{
"count": r.Count,
}
pkt.Fingerprint = []string{r.Description}
message := sanitizeMessageLDB(r.Description)
pkt.Fingerprint = []string{message}
if err := sendReport(dsn, pkt, userIDFor(req)); err != nil {
log.Println("Failed to send failure report:", err)