Skip to content

Commit f95e264

Browse files
committed
AC-10269: Gift registry frontend enhancements
* Condition updated
1 parent 78fac67 commit f95e264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Mail/EmailMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private function sanitiseEmail(?string $email): ?string
280280
if (!empty($email) && str_starts_with($email, '=?')) {
281281
$decodedValue = iconv_mime_decode($email, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');
282282
$localPart = explode('@', $decodedValue);
283-
if (!empty($localPart[0]) && str_contains($localPart[0], ' ')) {
283+
if (isset($localPart[0]) && str_contains($localPart[0], ' ')) {
284284
throw new LocalizedException(__('Invalid email format'));
285285
}
286286
}

0 commit comments

Comments
 (0)