duplicate leak logic includes the line in hash (#345)

This commit is contained in:
Zachary Rice authored and GitHub committed 2020-02-26 17:38:16 -05:00
1 parent c4b07f5113
commit 94cae90d1e
9 files changed
+70 -3

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ func (manager *Manager) SendLeaks(l Leak) {
l.Offender = l.Offender[0:maxLineLen-1] + "..."
}
h := sha1.New()
h.Write([]byte(l.Commit + l.Offender + l.File))
h.Write([]byte(l.Commit + l.Offender + l.File + l.Line))
l.lookupHash = hex.EncodeToString(h.Sum(nil))
manager.leakWG.Add(1)
manager.leakChan <- l