summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-02-10 20:40:52 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-02-10 20:48:34 +0100
commit16c3a86193013efd604e4fe4c7ab225c3f65be87 (patch)
treed0df6c47cfab744f8149533a34875983caca6f4f /web/lib/acctfuncs.inc.php
parent9864988517a0c687a0ebe9fccecc126cec1b2776 (diff)
downloadaurweb-16c3a86193013efd604e4fe4c7ab225c3f65be87.tar.xz
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>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 0207bbd..2b7cc7a 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -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);
}
}