From 4808df102a50e22089d05c331640123e1d4b8bdc Mon Sep 17 00:00:00 2001 From: Michael Erdely Date: Fri, 11 Oct 2024 18:04:34 -0400 Subject: [PATCH] Be consistent with $pwd quoting in emails --- src/admin.php | 2 +- src/signup.php | 2 +- src/users.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/admin.php b/src/admin.php index d235ff2..4c5d838 100644 --- a/src/admin.php +++ b/src/admin.php @@ -54,7 +54,7 @@ if ($action == "approve") { $row["email"], "Gift Registry application approved", "Your Gift Registry application was approved by " . $_SESSION["fullname"] . ".\r\n" . - "Your username is " . $row["username"] . " and your password is $pwd.", + "Your username is " . $row["username"] . " and your password is '$pwd'.", "From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n" ) or die("Mail not accepted for " . $row["email"]); } diff --git a/src/signup.php b/src/signup.php index 03139ce..a0d55f5 100644 --- a/src/signup.php +++ b/src/signup.php @@ -80,7 +80,7 @@ if (isset($_POST["action"]) && $_POST["action"] == "signup") { $email, "Gift Registry account created", "Your Gift Registry account was created.\r\n" . - "Your username is $username and your password is $pwd.", + "Your username is $username and your password is '$pwd'.", "From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n" ) or die("Mail not accepted for $email"); } diff --git a/src/users.php b/src/users.php index a808371..1fe79b0 100644 --- a/src/users.php +++ b/src/users.php @@ -136,7 +136,7 @@ else if ($action == "insert") { $email, "Gift Registry account created", "Your Gift Registry account was created.\r\n" . - "Your username is $username and your password is $pwd.", + "Your username is $username and your password is '$pwd'.", "From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n" ) or die("Mail not accepted for $email"); header("Location: " . getFullPath("users.php?message=User+added+and+e-mail+sent.")); @@ -178,7 +178,7 @@ else if ($action == "reset") { mail( $resetemail, "Gift Registry password reset", - "Your Gift Registry password was reset to $pwd.", + "Your Gift Registry password was reset to '$pwd'.", "From: {$opt["email_from"]}\r\nReply-To: {$opt["email_reply_to"]}\r\nX-Mailer: {$opt["email_xmailer"]}\r\n" ) or die("Mail not accepted for $email"); header("Location: " . getFullPath("users.php?message=Password+reset."));