Repository navigation
fix(config): sanitize validation log output to prevent control character injection - #39116
powermaster888 wants to merge 1 commit into
Conversation
Greptile SummaryThis PR sanitizes config validation issue
Confidence Score: 4/5
|
…ter injection (#39116) Co-authored-by: Bill <[email protected]>
|
Landed manually on What I did:
Landed commit:
Attribution:
Thanks for the contribution. |
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]> (cherry picked from commit 4c2cb73)
…ter injection (openclaw#39116) (#1765) (cherry picked from commit 4c2cb73) Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
…ter injection (openclaw#39116) Co-authored-by: Bill <[email protected]>
Summary
pathandmessagefields withsanitizeTerminalText()before they are loggedsanitizeTerminalTextutility fromsrc/terminal/safe-text.tsBefore: Validation issue paths/messages are logged raw — a config with embedded ANSI codes or control characters could corrupt terminal output or inject misleading log lines.
After: All untrusted issue content is sanitized before logging, while the Error object still contains the raw details for programmatic use.
Test plan
pnpm buildpasses\x1b[31min a field name) produces clean log output🤖 Generated with Claude Code