Strange happenings with encoded Polish. Fix decoding if possible.
This commit is contained in:
parent
032f28a4f9
commit
70d2ccefdb
|
@ -810,6 +810,9 @@ function groups_show_frames($gruppen)
|
||||||
*/
|
*/
|
||||||
function headerDecode($value)
|
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);
|
return mb_decode_mimeheader($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue