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,9 +225,16 @@ class rcube_message_header
}
if ($decode) {
if (is_array($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;
}

Loading…
Cancel
Save