-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mime] Fix boundary header #36026
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
[Mime] Fix boundary header #36026
Conversation
What does it fix? |
Description updated. |
As far as I know, the current chars used in the boundary are correct, so I would prefer that we fix the root cause instead. |
Yes, after checking, the chars are correct, and the quotes should not cause any problem at all, that's even a recommandation:
So I assume the root cause is API side in the ticket #35443 and there's not much we can do. |
I think the actual problem here is that the boundary is only put in quotes in the header but not the parts in the message (as described here: #35443 (comment) ) |
src/Symfony/Component/Mime/Tests/Part/Multipart/FormDataPartTest.php
Outdated
Show resolved
Hide resolved
@n3o77 It's normal, quotes are only for the parameter value in the header: https://tools.ietf.org/html/rfc2046#section-5.1.1 Anyway, this PR should fix this interoperability issue. |
Thank you @guillbdx. |
The boundary value of Content-Type header was enclosed in quotes, cause of the "=" symbol.