Aleksander Machniak
2016-01-16 ed1d212ae2daea5e4bd043417610177093e99f19
program/lib/Roundcube/rcube_message_header.php
@@ -226,11 +226,12 @@
        if ($decode) {
            if (is_array($value)) {
                foreach ($value as $key=>$val) {
                    $value[$key] = rcube_mime::decode_header($val, $this->charset);
                foreach ($value as $key => $val) {
                    $val         = rcube_mime::decode_header($val, $this->charset);
                    $value[$key] = rcube_charset::clean($val);
                }
            } else {
            }
            else {
                $value = rcube_mime::decode_header($value, $this->charset);
                $value = rcube_charset::clean($value);
            }