From: Thomas Müller Date: Mon, 10 Mar 2014 20:56:37 +0000 (+0100) Subject: remove magic handling of recipient lists by exploding the string - this functionality... X-Git-Tag: v7.0.0alpha2~647^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0de43f1fbe20f6cb69d14e8b07efa1e72f852464;p=nextcloud-server.git remove magic handling of recipient lists by exploding the string - this functionality is nowhere used this way and nowhere documented - and broken because only $toaddress will be exploded not $toname --- diff --git a/lib/private/mail.php b/lib/private/mail.php index 90c3e343199..9605290fe57 100644 --- a/lib/private/mail.php +++ b/lib/private/mail.php @@ -72,11 +72,8 @@ class OC_Mail { $mailo->From = $fromaddress; $mailo->FromName = $fromname;; $mailo->Sender = $fromaddress; - $a=explode(' ', $toaddress); try { - foreach($a as $ad) { - $mailo->AddAddress($ad, $toname); - } + $mailo->AddAddress($toaddress, $toname); if($ccaddress<>'') $mailo->AddCC($ccaddress, $ccname); if($bcc<>'') $mailo->AddBCC($bcc);