Bläddra i källkod

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

jangliss 16 år sedan
förälder
incheckning
278e0f1e3a
2 ändrade filer med 9 tillägg och 1 borttagningar
  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.
   - 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)
 --------------------------------------

+ 7 - 1
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";