Skip to content

Commit a09a45b

Browse files
committed
prevent iconv decoding from failing
1 parent 53e69bb commit a09a45b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ private function decode(mixed $value): mixed {
433433
$value = \imap_utf8($value);
434434
}
435435
} elseif ($decoder === 'iconv' && $this->is_uft8($value)) {
436-
$value = iconv_mime_decode($value);
436+
$value = iconv_mime_decode($value, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, "UTF-8");
437437
}
438438

439439
if ($this->is_uft8($value)) {

0 commit comments

Comments
 (0)