Преглед на файлове

Fix for bug_report plugin not handling multiple values for same key (AUTH= AUTH=)

jangliss преди 16 години
родител
ревизия
278e0f1e3a
променени са 2 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 2 0
      doc/ChangeLog
  2. 7 1
      plugins/bug_report/system_specs.php

+ 2 - 0
doc/ChangeLog

@@ -316,6 +316,8 @@ Version 1.5.2 - SVN
   - Add "Check All" function to address book when using "in-page" addressbook.
   - Add "Check All" function to address book when using "in-page" addressbook.
   - Fixed the Filters plugin to allow commas in filter criteria text.
   - Fixed the Filters plugin to allow commas in filter criteria text.
   - In SMTP, when we EHLO with an IP, wrap it in brackets (#2793154).
   - 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)
 --------------------------------------
 --------------------------------------

+ 7 - 1
plugins/bug_report/system_specs.php

@@ -141,7 +141,13 @@ function get_system_specs() {
         $body.= '  Capabilities: ';
         $body.= '  Capabilities: ';
         if ($imap_capabilities = sqimap_capability($imap_stream)) {
         if ($imap_capabilities = sqimap_capability($imap_stream)) {
             foreach ($imap_capabilities as $capability => $value) {
             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";