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 c8088c9c864ba054ac171702658fdb6c0fb73759..6252ac1500cd51b67244c49de699fe6e84ae49e5 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 f0eab3159f82e0be6d0fa410304bccef65622c5b..f63ca76d231c04677af5def9427fcdc37dccf99e 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) {