Strange happenings with encoded Polish. Fix decoding if possible.

This commit is contained in:
Retro_Guy 2024-01-11 07:49:04 -07:00
parent 032f28a4f9
commit 70d2ccefdb
1 changed files with 3 additions and 0 deletions

View File

@ -810,6 +810,9 @@ function groups_show_frames($gruppen)
*/
function headerDecode($value)
{
$value = preg_replace_callback('/(=\?[^\?]+\?Q\?)([^\?]+)(\?=)/i', function($matches) {
return $matches[1] . str_replace('_', '=20', $matches[2]) . $matches[3];
}, $value);
return mb_decode_mimeheader($value);
}