🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@benjamintoussaint
Copy link
Contributor

@benjamintoussaint benjamintoussaint commented Sep 29, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #44000
License MIT

We need to ensure that forbidden headers are not sent, regardless of their case, e.g. "Sender" and "sender" should both be forbidden.

We need to ensure that forbidden headers are not sent, regardless of their case, e.g. "Sender" and "sender" should both be forbidden.
@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@xabbuh xabbuh modified the milestones: 7.4, 7.3 Sep 29, 2025
@benjamintoussaint
Copy link
Contributor Author

benjamintoussaint commented Sep 29, 2025

��\(ツ)

@OskarStark OskarStark changed the title [Mailer] Fix MailJet bridge forbidden headers case-sensitive comparison [Mailer][MailJet] Fix forbidden headers case-sensitive comparison Sep 29, 2025
It's preferable to keep the constant with 'TitleCase' for readability, so we make all array keys lowercase prior to looping through the headers.

This follows the PR review.
@symfony symfony deleted a comment from carsonbot Sep 29, 2025
@fabpot fabpot modified the milestones: 7.3, 6.4 Sep 30, 2025
@fabpot
Copy link
Member

fabpot commented Sep 30, 2025

Thank you @benjamintoussaint.

fabpot added a commit that referenced this pull request Sep 30, 2025
…parison (benjamintoussaint)

This PR was submitted for the 7.4 branch but it was squashed and merged into the 6.4 branch instead.

Discussion
----------

[Mailer][MailJet] Fix forbidden headers case-sensitive comparison

| Q             | A
| ------------- | ---
| Branch?       | 7.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #44000
| License       | MIT

We need to ensure that forbidden headers are not sent, regardless of their case, e.g. "Sender" and "sender" should both be forbidden.

Commits
-------

b1e4576 [Mailer][MailJet] Fix forbidden headers case-sensitive comparison
@fabpot
Copy link
Member

fabpot commented Sep 30, 2025

Merged

@fabpot fabpot closed this Sep 30, 2025
This was referenced Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[symfony/mailjet-mailer] Unable to send an email via API: Message-ID header cannot be customized

6 participants