Fix bug in snippets sometimes not converting charset properly.
This commit is contained in:
parent
02c1733392
commit
c82e01062a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue