summaryrefslogtreecommitdiffstats
path: root/core/ajax/share.php
diff options
context:
space:
mode:
authorRandolph Carter <RandolphCarter@fantasymail.de>2012-12-19 01:09:14 +0100
committerRandolph Carter <RandolphCarter@fantasymail.de>2012-12-19 01:09:14 +0100
commitd2828bab0792ce945f658e3fa66a62341c582d5e (patch)
treed12467e1e89cb000a17edd87fb369d476472ace8 /core/ajax/share.php
parent3adfb91ad895dc9371834c0e42cfd3605fdd7054 (diff)
downloadnextcloud-server-d2828bab0792ce945f658e3fa66a62341c582d5e.tar.gz
nextcloud-server-d2828bab0792ce945f658e3fa66a62341c582d5e.zip
fixes default email sender address
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r--core/ajax/share.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index 12206e0fd79..72ffc52e997 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -89,12 +89,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if ($type === 'dir')
$text = (string)$l->t('User %s shared the folder "%s" with you. It is available for download here: %s', array($user, $file, $link));
- // handle localhost installations
- $server_host = OCP\Util::getServerHost();
- if ($server_host === 'localhost')
- $server_host = "example.com";
- $default_from = 'sharing-noreply@' . $server_host;
+ $default_from = OCP\Util::getDefaultEmailAddress('sharing-noreply');
$from_address = OCP\Config::getUserValue($user, 'settings', 'email', $default_from );
// send it out now