-
Notifications
You must be signed in to change notification settings - Fork 109
[MU] Fix missing email content form sanitized #4184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MU] Fix missing email content form sanitized #4184
Conversation
|
This PR has been deployed to https://linagora.github.io/tmail-flutter/4184. |
core/lib/presentation/utils/html_transformer/text/standardize_html_sanitizing_transformers.dart
Show resolved
Hide resolved
|
|
Recommended Security Tests |
|
Recommended Fixes |
Your AI analysis is quite correct, but not enough, we have too many attributes that are easily |
|
Solution 2 is implemented here #4188 |
Issue
Email content does not display because the HTML sanitization process removes the
<form>tag and all its nested elements. This causes parts of the email body to disappear when rendering.Root cause
The email content disappeared because the HTML sanitization pipeline removed the
<form>tag, which caused all elements nested inside the form to be stripped during processing.Solution
<form>tag to be preserved by extending the sanitization allowlist.EMAIL_HTML_TAGS_TO_PRESERVEso deployments can append custom tags (including form) without modifying code.Resolved