1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-17 20:32:41 +01:00

Apply the wordwrap() hack for "To" to PHPMailerLite

Summary:
Fixes T12372. Long-term fix is T12404, this is a bandaid in the interim.

See T12372 for additional discussion.

Test Plan: Confirmed functional by a user in T12372.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12372

Differential Revision: https://secure.phabricator.com/D17501
This commit is contained in:
epriestley 2017-03-15 18:09:27 -07:00
parent 7626ec0ce1
commit 19af10df37

View file

@ -656,6 +656,10 @@ class PHPMailerLite {
$addr_str .= implode(', ', $addresses); $addr_str .= implode(', ', $addresses);
$addr_str .= $this->LE; $addr_str .= $this->LE;
// NOTE: This is a narrow hack to fix an issue with 1000+ characters of
// recipients, described in T12372.
$addr_str = wordwrap($addr_str, 75, "\n ");
return $addr_str; return $addr_str;
} }