Some places with incorrect escaping or plain text conversion. The first one has been causing random test fails.
1) Double conversion to plain text. MailEntity::getBodyWithFormat() calls MailFormatHelper::htmlToText() and then due to #3174760: Mails resembling HTML are corrupted so does PhpMail::format(). Core may never be fixed, but we can workaround it by removing our conversion.
2) Unwanted HTML-escaping in subject, giving incorrect output if it contains an HTML entity. This occurs because we pass markup for the subject, but not implementing MarkupInterface. This isn't a bug with the core mail system due to #2575791: Mail subject should not be run through strip_tags(), but it is visible when using Symfony Mailer.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | simplenews.escaping-conversion.3247321-interdiff-2-4.txt | 801 bytes | adamps |
| #4 | simplenews.escaping-conversion.3247321-4.patch | 3.98 KB | adamps |
| #2 | simplenews.escaping-conversion.3247321-2.patch | 3.13 KB | adamps |
Comments
Comment #2
adamps commentedComment #4
adamps commentedComment #5
adamps commentedComment #6
adamps commented