Skip to content
Snippets Groups Projects
Commit 14820d71 authored by Matthew Radcliffe's avatar Matthew Radcliffe Committed by Wayne Eaker
Browse files

Issue #3390183 by mradcliffe: Using a Name <Email> in Reply-to results in a RfcComplianceException

parent 4aed13d0
Branches
Tags
No related merge requests found
......@@ -668,10 +668,9 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
if (preg_match('/^.*<.*>.*$/', $mailbox_raw)) {
$mailbox_components = explode('<', $mailbox_raw);
$mailbox_name = trim(preg_replace("/\"/", "", $mailbox_components[0]));
$mailbox_address = preg_replace('/>.*/', '', $mailbox_components[1]);
if ($validator->isValid($mailbox_address)) {
$mailboxes[$mailbox_address] = $mailbox_name;
$mailboxes[] = $mailbox_raw;
}
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment