mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 16:04:20 +00:00
Attachment names come from the received email. Bidirectional override
and isolate characters (e.g. U+202E) let an attacker disguise the real
extension of a downloaded file ("invoice<RLO>fdp.exe" displayed as
"invoiceexe.pdf"), and control characters have no place in a file name.
Remove them when generating the local file name.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>