summaryrefslogtreecommitdiff
path: root/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-04-23 07:15:07 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-04-23 07:15:07 +0000
commit0ebe2adc551d7c6aabc69c2bf969bcd2aa712d06 (patch)
treec7c0e744eeeacbfa5643c5210a0ab5f864a206e6 /roundcubemail/plugins/show_additional_headers/show_additional_headers.php
parent39790c71850d4f662bbc4d52cd12ca03a49d39fa (diff)
- Fix displaying special headers like Content-Type
git-svn-id: https://svn.roundcube.net/trunk@6115 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/show_additional_headers/show_additional_headers.php')
-rw-r--r--roundcubemail/plugins/show_additional_headers/show_additional_headers.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/plugins/show_additional_headers/show_additional_headers.php b/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
index cc71421ee..69ac7f2a7 100644
--- a/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
+++ b/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
@@ -42,9 +42,8 @@ class show_additional_headers extends rcube_plugin
{
$rcmail = rcmail::get_instance();
foreach ((array)$rcmail->config->get('show_additional_headers', array()) as $header) {
- $key = strtolower($header);
- if ($value = $p['headers']->others[$key])
- $p['output'][$key] = array('title' => $header, 'value' => Q($value));
+ if ($value = $p['headers']->get($header))
+ $p['output'][$header] = array('title' => $header, 'value' => Q($value));
}
return $p;