[Svn] r6115 - trunk/roundcubemail/plugins/show_additional_headers

trac at roundcube.net trac at roundcube.net
Mon Apr 23 09:15:09 CEST 2012


Author: alec
Date: 2012-04-23 02:15:07 -0500 (Mon, 23 Apr 2012)
New Revision: 6115

Modified:
   trunk/roundcubemail/plugins/show_additional_headers/package.xml
   trunk/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
Log:
- Fix displaying special headers like Content-Type


Modified: trunk/roundcubemail/plugins/show_additional_headers/package.xml
===================================================================
--- trunk/roundcubemail/plugins/show_additional_headers/package.xml	2012-04-23 07:13:29 UTC (rev 6114)
+++ trunk/roundcubemail/plugins/show_additional_headers/package.xml	2012-04-23 07:15:07 UTC (rev 6115)
@@ -15,10 +15,10 @@
 		<email>roundcube at 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>

Modified: trunk/roundcubemail/plugins/show_additional_headers/show_additional_headers.php
===================================================================
--- trunk/roundcubemail/plugins/show_additional_headers/show_additional_headers.php	2012-04-23 07:13:29 UTC (rev 6114)
+++ trunk/roundcubemail/plugins/show_additional_headers/show_additional_headers.php	2012-04-23 07:15:07 UTC (rev 6115)
@@ -42,9 +42,8 @@
   {
     $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;



More information about the svn mailing list