summaryrefslogtreecommitdiffstats
path: root/web/html/passreset.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-03-08 11:43:48 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-03-08 11:43:48 +0100
commitf5e1652bf95ed7b63a27042d8bb8b1195d7c9158 (patch)
tree01d76a78ddf635634d9d6b7124dbeb474a791e62 /web/html/passreset.php
parenta774b3d3558284bcabcc51a2447fd8b1a22ed194 (diff)
downloadaur-f5e1652bf95ed7b63a27042d8bb8b1195d7c9158.tar.gz
aur-f5e1652bf95ed7b63a27042d8bb8b1195d7c9158.tar.xz
Always set the "To:" header when sending mail
Use "undisclosed-recipients: ;" when sending mass notifications (such as comment notifications and the like. Addresses FS#28229. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/passreset.php')
-rw-r--r--web/html/passreset.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/passreset.php b/web/html/passreset.php
index 82be3ef4..98aa685d 100644
--- a/web/html/passreset.php
+++ b/web/html/passreset.php
@@ -70,8 +70,8 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
"{$AUR_LOCATION}/passreset.php?".
"resetkey={$resetkey}";
$body = wordwrap($body, 70);
- $headers = "To: {$email}\nReply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR";
- @mail(' ', 'AUR Password Reset', $body, $headers);
+ $headers = "Reply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR";
+ @mail($email, 'AUR Password Reset', $body, $headers);
}
header('Location: passreset.php?step=confirm');