mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Use CRLF to separate headers in mail()
This is the correct delimiter for mail headers according to the PHP documentation and RFC 2822. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
9864988517
commit
16c3a86193
2 changed files with 16 additions and 4 deletions
|
@ -652,7 +652,10 @@ function send_resetkey($email, $body) {
|
|||
$body .= "\n\n".
|
||||
"{$AUR_LOCATION}/" . get_uri('/passreset/') . "?".
|
||||
"resetkey={$resetkey}";
|
||||
$headers = "Reply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR";
|
||||
$headers = "Reply-to: nobody@archlinux.org\r\n" .
|
||||
"From: aur-notify@archlinux.org\r\n" .
|
||||
"X-Mailer: PHP\r\n" .
|
||||
"X-MimeOLE: Produced By AUR";
|
||||
@mail($email, 'AUR Password Reset', $body, $headers);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue