[Pkg-owncloud-commits] [owncloud] 41/134: 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
David Prévot
taffit at moszumanska.debian.org
Fri Apr 18 21:43:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit c1c6ce22e88ccc2fb492ca2886c18453fe0e23e9
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Mon Mar 10 21:56:37 2014 +0100
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
---
lib/private/mail.php | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/private/mail.php b/lib/private/mail.php
index b339b33..27dc6d3 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list