Skip to content

Commit f419b48

Browse files
committed
test: cover whatsapp filename del stripping
1 parent a777e5d commit f419b48

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,7 +3101,6 @@ Docs: https://docs.openclaw.ai
31013101
- Agents/reply context: label replied-to messages as the current user message target in model-visible metadata, so short replies are grounded to their explicit reply target instead of nearby chat history. (#76817) Thanks @obviyus.
31023102
- Doctor/plugins: install configured missing official plugins such as Discord and Brave during doctor/update repair, auto-enable repaired provider plugins, preserve config when a download fails, and stop auto-enable from inventing plugin entries when no manifest declares a configured channel. Fixes #76872. Thanks @jack-stormentswe.
31033103
- Agents/CLI runner: bridge in-flight assistant agent events into the shared `onPartialReply` callback so CLI backends (Anthropic Max plan via `claude-cli`, Codex CLI, etc.) drive the same Telegram and channel preview path the native API path uses, instead of silently delivering only the final assembled message. Fixes #76869. Thanks @jack-stormentswe.
3104-
- WhatsApp: strip control characters and CRLF from outbound document `fileName` to prevent header injection from attacker-controlled filenames. (#77114) Thanks @masatohoshino.
31053104

31063105
## 2026.5.2
31073106

extensions/whatsapp/src/document-filename.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("resolveWhatsAppDocumentFileName", () => {
1414
it("strips C0 control characters and DEL from fileName", () => {
1515
expect(
1616
resolveWhatsAppDocumentFileName({
17-
fileName: "\x00evil\x1f.pdf",
17+
fileName: "\x00evil\x1f\x7f.pdf",
1818
mimetype: "application/pdf",
1919
}),
2020
).toBe("evil.pdf");

0 commit comments

Comments
 (0)