Happy New Year
[squirrelmail.git] / plugins / bug_report / system_specs.php
index 37957880c1992770fece872d647f548de3a95d0e..28778ada57da90dee5e15b1c780ab04b77671ac4 100644 (file)
@@ -3,7 +3,7 @@
  * This script gathers system specification details for use with bug reporting
  * and anyone else who needs it.
  *
- * @copyright © 1999-2009 The SquirrelMail Project Team
+ * @copyright 1999-2020 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -141,7 +141,13 @@ function get_system_specs() {
         $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";