Fix for bug_report plugin not handling multiple values for same key (AUTH= AUTH=)
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 24 May 2009 06:08:56 +0000 (06:08 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 24 May 2009 06:08:56 +0000 (06:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13753 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/ChangeLog
plugins/bug_report/system_specs.php

index 4eb9f53f0fb7475996a2a197e58ccad90e896d70..957af368c65eb6ec4d227755c9faaec28e0d60e8 100644 (file)
@@ -316,6 +316,8 @@ Version 1.5.2 - SVN
   - Add "Check All" function to address book when using "in-page" addressbook.
   - Fixed the Filters plugin to allow commas in filter criteria text.
   - In SMTP, when we EHLO with an IP, wrap it in brackets (#2793154).
   - Add "Check All" function to address book when using "in-page" addressbook.
   - Fixed the Filters plugin to allow commas in filter criteria text.
   - In SMTP, when we EHLO with an IP, wrap it in brackets (#2793154).
+  - Bug Report plugin not handling multiple same key capabilities (thread/auth)
+    (#2796007).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
index 37957880c1992770fece872d647f548de3a95d0e..ee46dc23b05ca4379e33bf371d9f2c2c8976dc3f 100644 (file)
@@ -141,7 +141,13 @@ function get_system_specs() {
         $body.= '  Capabilities: ';
         if ($imap_capabilities = sqimap_capability($imap_stream)) {
             foreach ($imap_capabilities as $capability => $value) {
         $body.= '  Capabilities: ';
         if ($imap_capabilities = sqimap_capability($imap_stream)) {
             foreach ($imap_capabilities as $capability => $value) {
-                $body.= $capability . (is_bool($value) ? ' ' : "=$value ");
+               if (is_array($value)) {
+                       foreach($value as $val) {
+                               $body .= $capability . "=$val ";
+                       }
+               } else {
+                       $body.= $capability . (is_bool($value) ? ' ' : "=$value ");
+               }
             }
         }
         $body.="\n";
             }
         }
         $body.="\n";