summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-10 21:56:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-10 21:56:37 +0100
commit0de43f1fbe20f6cb69d14e8b07efa1e72f852464 (patch)
tree383a78cd6052b9c3a5c704bf9c5e779cfc403e96 /lib
parentf1ecc758f5f6543566ae9970de837e5524cf8bf9 (diff)
downloadnextcloud-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.php5
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);