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 78fac67 commit f95e264Copy full SHA for f95e264
lib/internal/Magento/Framework/Mail/EmailMessage.php
@@ -280,7 +280,7 @@ private function sanitiseEmail(?string $email): ?string
280
if (!empty($email) && str_starts_with($email, '=?')) {
281
$decodedValue = iconv_mime_decode($email, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');
282
$localPart = explode('@', $decodedValue);
283
- if (!empty($localPart[0]) && str_contains($localPart[0], ' ')) {
+ if (isset($localPart[0]) && str_contains($localPart[0], ' ')) {
284
throw new LocalizedException(__('Invalid email format'));
285
}
286
0 commit comments