Skip to content

Commit 34f4be5

Browse files
authored
Mime: encode comma
this does solve GenericHeader::toString + Header\AbstractAddressList::fromString problem reported here: zendframework/zend-mail#146
1 parent b4f9d91 commit 34f4be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public static function encodeQuotedPrintableHeader(
193193
$str = self::_encodeQuotedPrintable($str);
194194

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

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

0 commit comments

Comments
 (0)