Fix bug in snippets sometimes not converting charset properly.

This commit is contained in:
Retro_Guy 2024-08-25 13:33:05 -07:00
parent 02c1733392
commit c82e01062a
1 changed files with 2 additions and 1 deletions

View File

@ -1826,7 +1826,8 @@ function get_search_snippet($body, $content_type = '', $content_transfer_encodin
$body = quoted_printable_decode($body);
}
if ($content_type !== '') {
$mysnippet = recode_charset($body, $content_type, "utf8");
$content_type = explode(';', $content_type);
$mysnippet = recode_charset($body, $content_type[0]);
} else {
$mysnippet = $body;
}