We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d91e49a commit 1d19aa4Copy full SHA for 1d19aa4
lib/internal/Magento/Framework/Mail/EmailMessage.php
@@ -276,9 +276,9 @@ private function convertAddressArrayToAddressList(array $arrayList): AddressList
276
*/
277
private function sanitiseEmail(?string $email): ?string
278
{
279
- if (!empty($email) && str_contains($email, '=?')) {
280
- $decodedValue = trim(iconv_mime_decode($email, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8'));
281
- if ($this->isEncoded(trim($email), $decodedValue)) {
+ if (!empty($email) && str_starts_with($email, '=?')) {
+ $decodedValue = iconv_mime_decode($email, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');
+ if ($this->isEncoded($email, $decodedValue)) {
282
$email = strtolower(str_replace('=22', '', $email));
283
}
284
0 commit comments