1
0
Fork 0
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:
epriestley 2012-01-08 10:25:01 -08:00
parent 3a142c8788
commit 79205481e6

View file

@ -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;