summaryrefslogtreecommitdiff
path: root/plugins/show_additional_headers
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-23 07:15:07 +0000
committeralecpl <alec@alec.pl>2012-04-23 07:15:07 +0000
commiteb78fddf2d28f417815d7154345adb0f87f9485e (patch)
tree3d9cd7b6c8bdf4b902af60ebe741c379a46354ea /plugins/show_additional_headers
parent111f5098d532b4eba47f2a496ed02d2203077690 (diff)
- Fix displaying special headers like Content-Type
Diffstat (limited to 'plugins/show_additional_headers')
-rw-r--r--plugins/show_additional_headers/package.xml6
-rw-r--r--plugins/show_additional_headers/show_additional_headers.php5
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/show_additional_headers/package.xml b/plugins/show_additional_headers/package.xml
index 00d65812b..7297916c3 100644
--- a/plugins/show_additional_headers/package.xml
+++ b/plugins/show_additional_headers/package.xml
@@ -15,10 +15,10 @@
<email>roundcube@gmail.com</email>
<active>yes</active>
</lead>
- <date>2011-11-21</date>
+ <date>2012-04-23</date>
<version>
- <release>1.1</release>
- <api>1.1</api>
+ <release>2.0</release>
+ <api>2.0</api>
</version>
<stability>
<release>stable</release>
diff --git a/plugins/show_additional_headers/show_additional_headers.php b/plugins/show_additional_headers/show_additional_headers.php
index cc71421ee..69ac7f2a7 100644
--- a/plugins/show_additional_headers/show_additional_headers.php
+++ b/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;