Invalid initialization of To: header (#1772893).
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 15 Nov 2007 06:00:41 +0000 (06:00 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 15 Nov 2007 06:00:41 +0000 (06:00 +0000)
Thanks Tomas.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12765 7612ce4b-ef26-0410-bec9-ea0150e637f0

ChangeLog
class/mime/Rfc822Header.class.php

index c8088c9..6252ac1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -232,6 +232,7 @@ Version 1.5.2 - SVN
   - Fix off-by-one in bodystructure parsing triggered by servers sending
     a body location part (e.g. Sun Java System Messaging Server). Thanks
     John Callahan (#1808382).
+  - Invalid initialization of To: header (#1772893).
 
 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------
index f0eab31..f63ca76 100644 (file)
@@ -958,6 +958,7 @@ class Rfc822Header {
             }
         } else {
             if (!is_array($this->cc)) $this->cc = array();
+            if (!is_array($this->to)) $this->to = array();
             $srch_addr = $this->parseAddress($address);
             $results = array();
             foreach ($this->to as $to) {