Skip to content

Commit

Permalink
[fix] Update sanitization regex (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier authored Jan 22, 2025
1 parent 95c9b2d commit 42d2956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workflows/wasm/host/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func createLogFn(logger logger.Logger) func(caller *wasmtime.Caller, ptr int32,
args = append(args, k, v)
}

reg, _ := regexp.Compile(`[\[\]\\/\\>\<\&\{\}\:\;]`)
reg, _ := regexp.Compile(`[\r\n\t]|[\x00-\x1F]|[<>\"'\\&%$;:{}\[\]/]`)
sanitizedMsg := reg.ReplaceAllString(msg, "*")

switch level {
Expand Down

0 comments on commit 42d2956

Please sign in to comment.