Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Mime] Fix embed logic for background attributes#45376
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
| $this->assertStringContainsString('cid:'.$parts[1]->getContentId(),$generatedHtml->getBody()); | ||
| $content ='html content <img src="cid:test.gif">'; | ||
| $content ='<div background="cid:test.gif"></div>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can you add new tests instead of modifying existing ones?
flack commentedFeb 9, 2022
There's a coding style violation that wants me to add a trailing comma in the regex array. AFAIK that is only supported on PHP 7.3+, so it'll probably cause CI to fail. Should I still do it? |
flack commentedFeb 9, 2022
also, what is your policy with implementing review comments, should I make new commits or squash immediately? |
flack commentedFeb 9, 2022
implemented review comments (except for the trailing comma one, see above) |
derrabus commentedFeb 9, 2022
Trailing commas in array constructors are allowed in PHP 7.1 already, no worries. |
derrabus commentedFeb 9, 2022
As you wish, we can squash while merging. |
flack commentedFeb 9, 2022
alright, thx. All suggestions should be implemented now |
fabpot commentedFeb 10, 2022
I'm merging it in 6.1 as this is a new feature (this was not supported before). |
flack commentedFeb 10, 2022
well, it worked with Swiftmailer, so from the point of view of the user it's still a regression |
fabpot commentedFeb 10, 2022
Thank you@flack. |
fabpot commentedFeb 10, 2022
We've been more and more strict about what we consider a bug. Stability is the most important thing for already released versions. |
flack commentedFeb 10, 2022
Yeah, makes sense I guess. Unfortunately, for me it means I have to continue using the abandoned Switfmailer package (with composer shouting at me every time I update something) until I can migrate to php 8+ and sf 6 |
veto221 commentedMay 19, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Hi. |
Uh oh!
There was an error while loading.Please reload this page.
As suggested by@fabpot here#43255 (comment), this is the most minimal fix for the linked issue. I guess the same problem can happen if you use e.g.
I have changed it so that there is now an array of regexes to look for embedded images, so at least code for the
background-imagecase (or others that might be found later on) can easily be added.