Skip to content

Commit

Permalink
fix: record env with = in the value (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir authored Jul 29, 2024
1 parent a56ddbe commit 510b12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procdiscovery/pkg/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func getRelevantEnvVars(pid int) map[string]string {

str = strings.TrimRight(str, "\x00")

envParts := strings.Split(str, "=")
envParts := strings.SplitN(str, "=", 2)
if len(envParts) != 2 {
continue
}
Expand Down

0 comments on commit 510b12d

Please sign in to comment.