Commit Graph
42 Commits
Author SHA1 Message Date
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
Dat Dang 5cb37046d5 TF-4674 Handle download no extension attachment (#4701) 2026-07-15 12:09:57 +07:00
Dat Vu 9cd75b2885 TF-4339 Fix CORS issue on openid-configuration call (#4342) 2026-02-23 17:18:20 +07:00
dab246 a23d15a9ca TF-4136 refactor(logging): replace logError with logWarning for non-critical cases 2026-01-06 13:53:22 +07:00
dab246 860393fc90 feat(ai-scribe): Improve data & domain layer for ai scribe 2025-12-19 19:03:39 +07:00
dab246 c6bb268a75 TF-3622 Synchronize all style attributes in html and write E2E for it.
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-14 01:55:26 -07:00
dab246 0b9bb3530c Fix appear save draft dialog when reload editing composer
Signed-off-by: dab246 <tdvu@linagora.com>
2025-04-01 04:40:13 -07:00
dab246 6b82027090 TF-2667 Fix width size inline image in email view after send email 2024-06-11 13:59:12 +07:00
dab246 3c4fa63970 TF-2774 Fix big image dimension in signature 2024-04-05 14:54:42 +07:00
dab246 28d21c9aac TF-2754 Supports PDF viewing on Opera 2024-04-01 15:16:11 +07:00
dab246 30c45ef0a1 TF-2754 Supports PDF viewing on Microsoft EDGE 2024-04-01 15:16:11 +07:00
DatDang 754987b59e TF-2737 Separate PDF view handler between each browser 2024-03-22 16:35:35 +07:00
Dat Dang 65b587b9a0 TF-2708 Allow Chrome to download PDF after view (#2712) 2024-03-15 10:44:45 +07:00
dab246 ebd62ab78f TF-2520 Create some class to handle html
Signed-off-by: dab246 <tdvu@linagora.com>
2024-03-08 13:40:12 +07:00
DatDang 3bda85d919 TF-2628 Create open file in new browser tab function 2024-02-29 14:46:51 +07:00
dab246 82f42aa805 TF-2401 Fix cannot upload svg image as signature
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit d3fbecbf63)
2024-01-08 14:25:26 +01:00
dab246 41eb95257d TF-1718 Handle unsubscribe mail by mailto links
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit f96273c524)
2023-11-21 16:54:33 +07:00
dab246 14047c9ccc TF-2245 Fix upload attachment when token expired on web
Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 0b2ab3c6ff)
2023-10-27 11:18:29 +07:00
dab246 96145aae7a Sync all use PlatformInfo to check platform while runtime
(cherry picked from commit 514fec1f2f)
2023-06-15 16:43:58 +07:00
dab246 29219eb14e TF-1606 Store jmapUrl on memory
(cherry picked from commit 5e7e0f0cfb)
2023-03-24 19:40:48 +07:00
dab246 9778a9876a TF-1487 Upgrade latest dependencies version for core module
(cherry picked from commit 717b72de65503ee65c9979db9a5b319bfbb11a48)
2023-03-10 21:10:36 +07:00
dab246 fb177fb33d TF-1115 Add RemoteExceptionThrower 2022-10-28 16:20:02 +07:00
dab246 079bd404c2 TF-1074 Handle go to path /session 2022-10-26 21:22:15 +07:00
dab246 ae89802845 TF-1098 Apply lints for all module 2022-10-24 10:08:18 +07:00
dab246 dabdd089d0 TF-654 Create AnchorElement for download file on browser 2022-08-08 14:29:08 +07:00
dab246 fc83cae62b TF-764 Fix inline images are not saved and shown successfully in Draft 2022-08-02 17:06:36 +07:00
dab246 d8e119ee7c TF-761 Implement compress inside download and transformer 2022-07-29 14:04:23 +07:00
dab246 74901821ee TF-725 Download inline image as base64 data 2022-07-21 14:47:11 +07:00
dab246 4cff46623c TF-196 Implement RemoteExceptionThrower when get session 2022-06-23 09:24:40 +07:00
dab246 fd9b7cbb0a TF-196 Create RemoteExceptionThrower to catch error from network 2022-06-23 09:24:40 +07:00
dab246 4a2addd77a TF-644 Add accessToken in download interactor attachments for web 2022-06-15 11:18:49 +07:00
Dat PHAM HOANG ee692d52a2 TF-629 Download file and get the contentType to open file in Android/iOS 2022-06-13 19:02:25 +07:00
Dat PHAM HOANG 40a470dc21 TF-629 Add list of supported mimeType in Android and iOS 2022-06-13 19:02:25 +07:00
dab246 ea598c20b8 TF-571 Update token for interceptors dio 2022-06-01 14:31:58 +07:00
dab246 239234f836 TF-571 Check OIDC is available 2022-06-01 14:31:58 +07:00
dab246 7beebfebc8 TF-296 Fix download file on browser 2022-03-07 12:10:35 +07:00
dab246 5c0c1de5f3 TF-248 Remove all import package not use 2022-02-10 22:43:09 +07:00
dab246 60ffa5ace0 TF-106 Fix display inlined image CIDs of emails 2021-10-19 10:58:47 +07:00
dab246 449b512986 TF-56 Send email with attachment 2021-09-23 11:29:29 +07:00
dab246 0158142e45 TF-32 Add domain layer of export attachment for ios platform 2021-09-18 15:01:39 +07:00
dab246 ddf8a32e66 TF-32 Add domain layer of download attachment for android platform 2021-09-18 15:01:39 +07:00
dab246 5b0a8f6fb2 Init core module 2021-07-29 11:42:41 +07:00