mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Avoid double slashes in notification email body
Refactor some of the URI generation code to avoid double slashes in absolute URIs. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
aa2724bbfe
commit
5ebf534ba7
6 changed files with 26 additions and 20 deletions
|
@ -660,7 +660,7 @@ function send_resetkey($email, $subject, $body) {
|
|||
|
||||
/* Send e-mail with confirmation link. */
|
||||
$body = wordwrap($body, 70);
|
||||
$body .= "\n\n". aur_location() . get_uri('/passreset/') .
|
||||
$body .= "\n\n". get_uri('/passreset/', true) .
|
||||
"?resetkey={$resetkey}";
|
||||
$headers = "MIME-Version: 1.0\r\n" .
|
||||
"Content-type: text/plain; charset=UTF-8\r\n" .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue