ZF-3865: Zend_Mail::_encodeHeader() encode incorrect

Description

correct subject header :

Subject: =?utf-8?Q?=D0=A0=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BD?= =?utf-8?Q?=D0=B0=20=D0=BF=D0=BE=D1=80=D1=82=D0=B0=D0=BB=D0=B5?=

but Zend_Mail::_encodeHeader() do this (by one line);

Subject: =?utf-8?Q?=D0=A0=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D1=8F =D0=BD= =D0=B0 =D0=BF=D0=BE=D1=80=D1=82=D0=B0=D0=BB=D0=B5?=

to resolve issue (Zend/Mail.php) in _encodeHeader() just add line: $quotedValue = join("?=\n =?" . $this->_charset . '?Q?', split("=\n",$quotedValue));

after : $quotedValue = str_replace(array('?', ' '), array('=3F', '=20'), $quotedValue);

Comments

No comments to display