diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 21:56:37 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 21:56:37 +0100 |
commit | 0de43f1fbe20f6cb69d14e8b07efa1e72f852464 (patch) | |
tree | 383a78cd6052b9c3a5c704bf9c5e779cfc403e96 /lib | |
parent | f1ecc758f5f6543566ae9970de837e5524cf8bf9 (diff) | |
download | nextcloud-server-0de43f1fbe20f6cb69d14e8b07efa1e72f852464.tar.gz nextcloud-server-0de43f1fbe20f6cb69d14e8b07efa1e72f852464.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/mail.php | 5 |
1 files changed, 1 insertions, 4 deletions
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); |