Merge pull request #209 from bbraybrook/header_array_fix

Fix stringify problem when multiple headers values exist to be returned
pull/210/head
Aleksander Machniak 10 years ago
commit 642522f386

@ -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