From c82e01062a56908ff27e29ba60c2c1923aed9f99 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 25 Aug 2024 13:33:05 -0700 Subject: [PATCH] Fix bug in snippets sometimes not converting charset properly. --- Rocksolid_Light/rocksolid/newsportal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rocksolid_Light/rocksolid/newsportal.php b/Rocksolid_Light/rocksolid/newsportal.php index c46ace3..dc41c7c 100644 --- a/Rocksolid_Light/rocksolid/newsportal.php +++ b/Rocksolid_Light/rocksolid/newsportal.php @@ -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; }