Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2021-05-28 12:13:22 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-05-28 14:46:25 +0300
commit5e8f5a0d852ad318d987f0e9094bdfd849549c22 (patch)
treea70cbe1ea4e595a30c2ce3082ca95aaa97dcd039 /lib
parent66e046a227eb9b2e55afb2faafaf5e48b465d308 (diff)
Use noreply@ as email address for share emails
Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index d09db144cf4..6aa96a3b302 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -903,7 +903,7 @@ class Manager implements IManager {
$instanceName
]
);
- $message->setFrom([\OCP\Util::getDefaultEmailAddress($instanceName) => $senderName]);
+ $message->setFrom([\OCP\Util::getDefaultEmailAddress('noreply') => $senderName]);
// The "Reply-To" is set to the sharer if an mail address is configured
// also the default footer contains a "Do not reply" which needs to be adjusted.