git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue: record row changes in journal
[minimedit.git]
/
login
/
mailpass.inc.php
diff --git
a/login/mailpass.inc.php
b/login/mailpass.inc.php
index 5edc29e524f4099a4067dd20d55cb8b23d3845e3..2b0c204915f20e7fe9f079734d098b73e724c81e 100644
(file)
--- 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");
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,
$sitelink = 'https://'.$sitename;
$rep = [
'[[user]]' => $user->name ?: $found,