From 3539f9817695ab3865d1e2075b21ddae85d93499 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 4 Feb 2014 15:53:48 +0000 Subject: [PATCH] add missing second param for imap_rfc822_parse_adrlist --- mail/inc/class.mail_compose.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 149eae4f8e..74cc882062 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -1545,7 +1545,7 @@ class mail_compose $this->sessionData['messageFolder'] = $_folder; $this->sessionData['isDraft'] = true; foreach((array)$headers['CC'] as $val) { - $rfcAddr=imap_rfc822_parse_adrlist($val); + $rfcAddr=imap_rfc822_parse_adrlist($val, ''); $_rfcAddr = $rfcAddr[0]; if ($_rfcAddr->host=='.SYNTAX-ERROR.') continue; if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) { @@ -1566,7 +1566,7 @@ class mail_compose $this->sessionData['to'][] = $val; continue; } - $rfcAddr=imap_rfc822_parse_adrlist($val); + $rfcAddr=imap_rfc822_parse_adrlist($val, ''); $_rfcAddr = $rfcAddr[0]; if ($_rfcAddr->host=='.SYNTAX-ERROR.') continue; if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) { @@ -1582,7 +1582,7 @@ class mail_compose } foreach((array)$headers['REPLY_TO'] as $val) { - $rfcAddr=imap_rfc822_parse_adrlist($val); + $rfcAddr=imap_rfc822_parse_adrlist($val, ''); $_rfcAddr = $rfcAddr[0]; if ($_rfcAddr->host=='.SYNTAX-ERROR.') continue; if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) { @@ -1598,7 +1598,7 @@ class mail_compose } foreach((array)$headers['BCC'] as $val) { - $rfcAddr=imap_rfc822_parse_adrlist($val); + $rfcAddr=imap_rfc822_parse_adrlist($val, ''); $_rfcAddr = $rfcAddr[0]; if ($_rfcAddr->host=='.SYNTAX-ERROR.') continue; if($_rfcAddr->mailbox == 'undisclosed-recipients' || (empty($_rfcAddr->mailbox) && empty($_rfcAddr->host)) ) {