Skip to content

Commit

Permalink
Mime: encode comma
Browse files Browse the repository at this point in the history
this does solve GenericHeader::toString + Header\AbstractAddressList::fromString problem
reported here: zendframework/zend-mail#146
  • Loading branch information
glensc authored May 18, 2017
1 parent b4f9d91 commit 34f4be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mime.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function encodeQuotedPrintableHeader(
$str = self::_encodeQuotedPrintable($str);

// Mail-Header required chars have to be encoded also:
$str = str_replace(['?', ' ', '_'], ['=3F', '=20', '=5F'], $str);
$str = str_replace(['?', ',', ' ', '_'], ['=3F', '=2C', '=20', '=5F'], $str);

// initialize first line, we need it anyways
$lines = [0 => ''];
Expand Down

0 comments on commit 34f4be5

Please sign in to comment.