21 Commits
Author SHA1 Message Date
Dat Vu d9de1d23bc TF-5095 Limit attachment file names to 255 UTF-8 bytes (#5149) 2026-11-25 13:49:46 +07:00
Dat Vu 7405c072bc Drop unsafe-inline from the web CSP with a per-request script nonce (#5135) 2026-11-13 16:51:45 +07:00
Dat Dang 5807b75604 2509 Sanitize composer reply/forward, mailto and pasted content (#5069) 2026-10-29 15:15:29 +07:00
Dat H. Pham 05ae9e4ce3 Cover pipeline call sites and quote escaping; drop tests that prove nothing 2026-10-20 10:03:55 +07:00
dab246 b2c3cf9b9f TF-4953 feat(email): map the forbiddenToSend submission error to ForbiddenToSendException 2026-10-19 11:14:37 +07:00
Dang Dat 90095166dd 2509 Strip bidi and control characters from attachment names 2026-10-02 12:32:16 +07:00
Dang Dat 9e4152639f 2509 Escape header fields in the EML preview and remove the unused PDF viewer
The EML / full-message preview and the print page build their header
as an HTML string. Subject, sender, recipients, date, attachment names
and the attachment link were inserted unescaped, so a crafted header
value became markup in a same-origin page.
DownloadManager.openDownloadedFileWeb loaded pdf.js/pdfobject from a
CDN and put the file name unescaped into a blob page. Nothing calls it.

PreviewEmlFileUtils and PrintUtils escape every text field at the sink.
Callers pass raw strings and no longer pre-escape them. The attachment
link is attribute-escaped and built with Uri, so file names survive the
round-trip. The inline-image alt and id attributes are attribute-escaped.
openDownloadedFileWeb, its CDN loaders and js_interop_stub.dart are
removed, and DownloadManager no longer takes DeviceInfoPlugin.
2026-10-01 15:49:46 +07:00
Benoit TELLIER 1c55a46682 TF-4843 feat(composer): handle EmailSubmission/set invalidRecipients (#4844) 2026-09-25 19:36:44 +07:00
vttran 0145eed197 TF-4802 Update Twake Calendar footer separator (#4846) 2026-09-23 10:05:08 +07:00
Benoit TELLIER 1353436253 Hide Twake Calendar visio section when rendering ICS description (#4803) 2026-09-07 09:42:08 +07:00
Dat Vu 6b9dd5336f Fix: Calendar event HTML description rendered as plain text (#4558) 2026-05-28 15:27:33 +07:00
Dat Vu 6cfdef0fcf TF-4524 Fix blank plain-text email caused by backslash-hex false-positive in HTML sanitizer (#4527) 2026-05-18 16:35:54 +07:00
Dat Vu 54ffff4e1d Hotfix: Second Save as Draft Fails for Draft Emails with Attachments or Inline Images (#4505) 2026-05-14 17:11:45 +07:00
DatDang 4538959d30 TF-3578 Calendar event show free busy status 2025-04-04 00:13:40 -07:00
dab246 0f94e52d35 TF-3370 Handle SetError when make email action (Mark as read/star/move/delete) 2025-02-05 03:00:08 -08:00
dab246 47963d162b TF-3337 Write unit test to verify number of times call request when performing mark as read/star and move emails 2025-02-05 03:00:08 -08:00
DatDang 4a024699e2 Format calendar event description 2025-02-05 03:00:08 -08:00
DatDang b207880041 TF-2859 Unit test add language when reply calendar invitation 2024-05-21 10:42:28 +07:00
DatDang 90e17cf075 TF-2838 calendar event reject repo implementation 2024-05-08 17:45:51 +07:00
DatDang a92aa445ad TF-2819 calendar event maybe repo implementation 2024-05-08 17:45:51 +07:00
DatDang 77b13ee2a2 TF-2800 Calendar event accept - repo implementation 2024-05-08 17:45:51 +07:00