I fixed it ?????

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-26 05:06:58 -04:00
parent 9dd7aa0227
commit cd74eadfcd
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 3 additions and 3 deletions

View File

@ -51,11 +51,11 @@
}
unlink($filename);
$subject = $_GET['action'] == "sub" ? "S" : "Uns" . "ubscription confirmed";
$subject = ($_GET['action'] == "sub" ? "S" : "Uns") . "ubscription confirmed";
$headers = "From: announcements@vern.cc\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain\n";
$message = "You have been " . $_GET['action'] == "sub" ? "added to" : "removed from" . " the ~vern announcement mailing list";
$message = "You have been " . ($_GET['action'] == "sub" ? "added to" : "removed from") . " the ~vern announcement mailing list";
mail($email, $subject, $message, $headers);
} else {
@ -104,7 +104,7 @@
<p>Code <span class="red">* <?php echo $code_err; ?></span>
<input type="text" name="code"></p>
<select id="action" name="action">
<select id="action" name="action" hidden>
<option value="<?php echo htmlspecialchars($_GET['action']); ?>"></option>
</select>