-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Incoming email display (css) problem #9586
Comments
Yes. In 1.6.8 we made the css parser more strict, as it's very hard to sanitize css code. If it detects potentially evil code it will ignore the whole css "block", to be on the safe side. If you provide the email message sample we can take a look to see whether it's a bug and whether we can improve the parser. |
Thank you very much for your reply, here is an example of an email received that should normally be displayed correctly. HTML
|
Ok, this is not a problem with evil css code, as I suspected, but indeed there's a regression in how css class names are supposed to be modified so the styles do not "leak" outside of the message body. I'll investigate that. |
I'm surprised we didn't have a test for this. Fixed. |
If you need anything else on these issues please feel free to ask, so I received this update with WHM & cPanel, and the problem persists on all internet browsers including Google Chrome, Edge, FireFox |
i upgraded to 1.6.9 and i still see this issue. it is working fine with version 1.6.7 |
mail source:
|
Prerequisites
Describe the issue
When receiving an email with css, for some emails css is not supported. In the previous version, these problems did not exist at all, but it happened just after the update of WHM & cPanel v120.0.16 including the update of RoundCube v1.6.8
What browser(s) are you seeing the problem on?
Chrome
What version of PHP are you using?
v8.1
What version of Roundcube are you using?
v1.6.8
JavaScript errors
No response
PHP errors
No response
The text was updated successfully, but these errors were encountered: