diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-05-28 12:13:22 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-05-28 14:46:25 +0300 |
commit | 5e8f5a0d852ad318d987f0e9094bdfd849549c22 (patch) | |
tree | a70cbe1ea4e595a30c2ce3082ca95aaa97dcd039 /lib | |
parent | 66e046a227eb9b2e55afb2faafaf5e48b465d308 (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.php | 2 |
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. |