diff --git a/docs/plans/2026-08-04-authz-permissions-implementation.md b/docs/plans/2026-08-04-authz-permissions-implementation.md index f46f58bf..00fee161 100644 --- a/docs/plans/2026-08-04-authz-permissions-implementation.md +++ b/docs/plans/2026-08-04-authz-permissions-implementation.md @@ -1093,7 +1093,11 @@ function logSafe(value: string): string { let out = ""; for (const character of value) { const code = character.codePointAt(0)!; - out += code < 0x20 || code === 0x7f ? " " : character; + // C0 + DEL, plus NEL and the Unicode line/paragraph separators, which some + // log shippers and JSON consumers also treat as line terminators. + const isLineBreaking = + code < 0x20 || code === 0x7f || code === 0x85 || code === 0x2028 || code === 0x2029; + out += isLineBreaking ? " " : character; } return out; }