X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/0d9f10ddb4e7f4788b329f4b4cd6df4a5c6da3ad..519348de7aa1839fe208ecceca7386e1b9ff609d:/login/mailpass.inc.php diff --git a/login/mailpass.inc.php b/login/mailpass.inc.php index 5edc29e..2b0c204 100644 --- a/login/mailpass.inc.php +++ b/login/mailpass.inc.php @@ -21,7 +21,7 @@ function mailtoken($email) if (!file_put_contents("profile/$found/.token", $token)) throw new Exception("could not store token for $found"); - $sitename = $_SERVER['HTTP_HOST']; + $sitename = preg_replace('/^www\./', '', $_SERVER['HTTP_HOST']); $sitelink = 'https://'.$sitename; $rep = [ '[[user]]' => $user->name ?: $found,