Change redacted behaviour on the line information

The line information sometimes contains useful context information so
instead of redacting the whole line, this change redacts only the
secret
This commit is contained in:
Cristhian Amaya committed 2018-11-30 14:13:18 +01:00
1 parent 342e9f80db
commit 949029ca89
1 file changed
+1 -1
+1 -1
View File
@@ -669,7 +669,7 @@ func addLeak(leaks []Leak, line string, offender string, leakType string, diff g
}
if opts.Redact {
leak.Offender = "REDACTED"
leak.Line = "REDACTED"
leak.Line = strings.Replace(line, offender, "REDACTED", -1)
}
if opts.Verbose {