Skip to content

[Mime] Escape commas in address names #39866

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

Merged
merged 1 commit into from
Mar 12, 2021
Merged

Conversation

YaFou
Copy link
Contributor

@YaFou YaFou commented Jan 17, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #39416
License MIT
Doc PR --

Before:

$address = new Address('fabien@symfony.com', 'Fabien, Potencier');
$address->toString(); // Fabien, Potencier <fabien@symfony.com> -> Interpreted like two emails

After:

$address = new Address('fabien@symfony.com', 'Fabien, Potencier');
$address->toString(); // "Fabien, Potencier" <fabien@symfony.com>

@carsonbot
Copy link

Hey!

I didn't know that was capable of this emotion. I really really like reviewing this PR. Well done.

I think @Cartman34 has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@OskarStark OskarStark requested a review from fabpot January 18, 2021 13:30
@YaFou YaFou force-pushed the comma-in-address-name branch from 079196f to c89ff21 Compare January 18, 2021 19:27
@YaFou YaFou force-pushed the comma-in-address-name branch from c89ff21 to 39e9158 Compare January 19, 2021 18:34
@fabpot
Copy link
Member

fabpot commented Mar 12, 2021

Thank you @YaFou.

@fabpot fabpot merged commit 93467c5 into symfony:4.4 Mar 12, 2021
This was referenced Mar 29, 2021
@YaFou YaFou deleted the comma-in-address-name branch May 23, 2021 08:35
vinibrsl added a commit to plausible/bamboo_postmark that referenced this pull request Nov 28, 2022
This PR encodes names with quotes when building e-mails, e.g. "John Doe"
<johndoe@provider.test>. This adds support for special names with commas
and even quotes.

Related: symfony/symfony#39866,
plausible/analytics#1885
vinibrsl added a commit to plausible/bamboo_postmark that referenced this pull request Nov 28, 2022
This PR encodes names with quotes when building e-mails, e.g. "John Doe"
<johndoe@provider.test>. This adds support for special names with commas
and even quotes.

Related: symfony/symfony#39866,
plausible/analytics#1885
vinibrsl added a commit to plausible/bamboo_postmark that referenced this pull request Nov 28, 2022
This PR encodes names with quotes when building e-mails, e.g. "John Doe"
<johndoe@provider.test>. This adds support for special names with commas
and even quotes.

Related: symfony/symfony#39866,
plausible/analytics#1885
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.

7 participants