From d1e68dd096ad11c43b582028a1e66cc9be07c76d Mon Sep 17 00:00:00 2001 From: jangliss Date: Sun, 24 May 2009 06:08:56 +0000 Subject: [PATCH] Fix for bug_report plugin not handling multiple values for same key (AUTH= AUTH=) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13753 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- doc/ChangeLog | 2 ++ plugins/bug_report/system_specs.php | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 4eb9f53f..957af368 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -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). + - Bug Report plugin not handling multiple same key capabilities (thread/auth) + (#2796007). Version 1.5.1 (branched on 2006-02-12) -------------------------------------- diff --git a/plugins/bug_report/system_specs.php b/plugins/bug_report/system_specs.php index 37957880..ee46dc23 100644 --- a/plugins/bug_report/system_specs.php +++ b/plugins/bug_report/system_specs.php @@ -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"; -- 2.25.1