Commit 35b7c667 authored by Dan Bitzer's avatar Dan Bitzer

Fix missing reply-to header when field format is '<test@example.org>' but doesn't include a name

parent 3434ceea
Pipeline #907 passed with stages
in 1 minute and 39 seconds
......@@ -254,6 +254,7 @@ final class NF_Actions_Email extends NF_Abstracts_Action
if (preg_match('/^"?(?<name>[^<"]+)"? <(?<email>[^>]+)>$/', $email, $matches)) {
$headers[] = $this->_format_recipient($type, $matches['email'], $matches['name']);
} else {
$email = str_replace( [ '<', '>' ], '', $email );
$headers[] = $this->_format_recipient($type, $email);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment