mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Minor, fix \n in MetaMTA headers.
This commit is contained in:
parent
3a142c8788
commit
79205481e6
1 changed files with 3 additions and 0 deletions
|
@ -316,6 +316,9 @@ class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO {
|
|||
break;
|
||||
case 'headers':
|
||||
foreach ($value as $header_key => $header_value) {
|
||||
// NOTE: If we have \n in a header, SES rejects the email.
|
||||
$header_value = str_replace("\n", " ", $header_value);
|
||||
|
||||
$mailer->addHeader($header_key, $header_value);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue