aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-31 20:26:09 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-31 20:26:09 +0200
commitd4ea853fcf3b3f82e2e489c81280b27bfbd62bf3 (patch)
tree606ec92fd57a5486d6e3468b8e1e1b463779c77d /core
parentf0bd57186686689d0f65c356cd7f226c045dd6e3 (diff)
downloadnextcloud-server-d4ea853fcf3b3f82e2e489c81280b27bfbd62bf3.tar.gz
nextcloud-server-d4ea853fcf3b3f82e2e489c81280b27bfbd62bf3.zip
use our own serverHost call so that ownCloud works with reverse proxy servers
Diffstat (limited to 'core')
-rw-r--r--core/lostpassword/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php
index 6a4748588fc..f1d90eaeffe 100644
--- a/core/lostpassword/index.php
+++ b/core/lostpassword/index.php
@@ -22,7 +22,7 @@ if (isset($_POST['user'])) {
$tmpl->assign('link', $link);
$msg = $tmpl->fetchPage();
$l = OC_L10N::get('core');
- $from = 'lostpassword-noreply@' . $_SERVER['HTTP_HOST'];
+ $from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
$r=mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from);
OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud');
echo('sent');