summaryrefslogtreecommitdiffstats
path: root/lib/private/share
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-12-07 10:49:34 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-12-07 10:49:34 +0100
commit5b87413792416beec851be7ecfcaaf2d5bb933c4 (patch)
treec8b69c59e0eec31e4f8bd45c6fa34d0c49fe5bf4 /lib/private/share
parent884946276e13e7949cb2a5a46fd29d342ff386d4 (diff)
downloadnextcloud-server-5b87413792416beec851be7ecfcaaf2d5bb933c4.tar.gz
nextcloud-server-5b87413792416beec851be7ecfcaaf2d5bb933c4.zip
Allow sending a share email to multiple users
Diffstat (limited to 'lib/private/share')
-rw-r--r--lib/private/share/mailnotifications.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/share/mailnotifications.php b/lib/private/share/mailnotifications.php
index f45d80b37ca..4d282158ba4 100644
--- a/lib/private/share/mailnotifications.php
+++ b/lib/private/share/mailnotifications.php
@@ -176,10 +176,12 @@ class MailNotifications {
$subject = (string)$this->l->t('%s shared »%s« with you', [$this->senderDisplayName, $filename]);
list($htmlBody, $textBody) = $this->createMailBody($filename, $link, $expiration);
+ $recipient = str_replace([', ', '; ', ',', ';', ' '], ',', $recipient);
+ $recipients = explode(',', $recipient);
try {
$message = $this->mailer->createMessage();
$message->setSubject($subject);
- $message->setTo([$recipient]);
+ $message->setTo($recipients);
$message->setHtmlBody($htmlBody);
$message->setPlainBody($textBody);
$message->setFrom([