summaryrefslogtreecommitdiffstats
path: root/web/lib/acctfuncs.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-02-10 20:57:16 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2014-02-10 21:00:36 +0100
commit94a4f597ff8aee0b79e51c9093452a1a2b6b7290 (patch)
tree75082bab0000c07452abef170750eb4d2655c8aa /web/lib/acctfuncs.inc.php
parent16c3a86193013efd604e4fe4c7ab225c3f65be87 (diff)
downloadaur-94a4f597ff8aee0b79e51c9093452a1a2b6b7290.tar.gz
aur-94a4f597ff8aee0b79e51c9093452a1a2b6b7290.tar.xz
Set Content-type header when sending UTF-8 mails
Fixes FS#38568. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/acctfuncs.inc.php')
-rw-r--r--web/lib/acctfuncs.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php
index 2b7cc7a3..312f11bc 100644
--- a/web/lib/acctfuncs.inc.php
+++ b/web/lib/acctfuncs.inc.php
@@ -652,7 +652,9 @@ function send_resetkey($email, $body) {
$body .= "\n\n".
"{$AUR_LOCATION}/" . get_uri('/passreset/') . "?".
"resetkey={$resetkey}";
- $headers = "Reply-to: nobody@archlinux.org\r\n" .
+ $headers = "MIME-Version: 1.0\r\n" .
+ "Content-type: text/plain; charset=UTF-8\r\n";
+ "Reply-to: nobody@archlinux.org\r\n" .
"From: aur-notify@archlinux.org\r\n" .
"X-Mailer: PHP\r\n" .
"X-MimeOLE: Produced By AUR";