Skip to content

Commit a53b123

Browse files
Minatulaev Roman Olegovichmorismor
authored andcommitted
Case-insensitive comparing =?utf-8?Q?
1 parent 210e679 commit a53b123

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/MailHog.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ protected function getDecodedEmailProperty($email, $property): string
447447
{
448448
if ((string) $property !== '') {
449449
if (!empty($email->Content->Headers->{'Content-Transfer-Encoding'}) && in_array(
450-
'quoted-printable',
451-
$email->Content->Headers->{'Content-Transfer-Encoding'},
452-
true
453-
)
450+
'quoted-printable',
451+
$email->Content->Headers->{'Content-Transfer-Encoding'},
452+
true
453+
)
454454
) {
455455
$property = quoted_printable_decode($property);
456456
}
@@ -459,7 +459,7 @@ protected function getDecodedEmailProperty($email, $property): string
459459
) {
460460
$property = quoted_printable_decode($property);
461461
}
462-
if (strpos($property, '=?utf-8?Q?') !== false && extension_loaded('mbstring')) {
462+
if (stripos($property, '=?utf-8?Q?') !== false && extension_loaded('mbstring')) {
463463
$property = mb_decode_mimeheader($property);
464464
}
465465
}
@@ -533,4 +533,4 @@ protected static function sortEmailsByCreationDatePredicate($emailA, $emailB): i
533533

534534
return ($sortKeyA > $sortKeyB) ? -1 : 1;
535535
}
536-
}
536+
}

0 commit comments

Comments
 (0)