mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
duplicate leak logic includes the line in hash (#345)
This commit is contained in:
1 parent
c4b07f5113
commit
94cae90d1e
9 files changed
+70
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user