fix stringify problem when multiple headers values exist to be returned

pull/209/head
brendan braybrook 10 years ago
parent a8f4d84736
commit 539fe0b84d

@ -225,8 +225,15 @@ class rcube_message_header
} }
if ($decode) { if ($decode) {
$value = rcube_mime::decode_header($value, $this->charset); if (is_array($value)) {
$value = rcube_charset::clean($value); foreach ($value as $key=>$val) {
$value[$key] = rcube_mime::decode_header($val, $this->charset);
$value[$key] = rcube_charset::clean($val);
}
} else {
$value = rcube_mime::decode_header($value, $this->charset);
$value = rcube_charset::clean($value);
}
} }
return $value; return $value;

Loading…
Cancel
Save