From 7c8a0b77c97d211c8900a47a88f9065f85605510 Mon Sep 17 00:00:00 2001 From: jangliss Date: Thu, 15 Nov 2007 06:00:41 +0000 Subject: [PATCH] Invalid initialization of To: header (#1772893). Thanks Tomas. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12765 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + class/mime/Rfc822Header.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index c8088c9c..6252ac15 100644 --- 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) -------------------------------------- diff --git a/class/mime/Rfc822Header.class.php b/class/mime/Rfc822Header.class.php index f0eab315..f63ca76d 100644 --- a/class/mime/Rfc822Header.class.php +++ b/class/mime/Rfc822Header.class.php @@ -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) { -- 2.25.1