i think the first issue is now fixed but i doubt it tbh

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-26 04:57:34 -04:00
parent af95b4af83
commit 83527fd4a3
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 1 additions and 3 deletions

View File

@ -43,8 +43,6 @@
$filename = "/tmp/list-code-" . $email;
if (!empty($_GET['code'])) {
echo file_get_contents($filename);
echo $_GET['code'];
if (file_get_contents($filename) == $_GET['code']) {
if ($_GET['action'] == "sub") {
file_put_contents($filename, $code . PHP_EOL, FILE_APPEND);
@ -81,7 +79,7 @@
mail($email, $subject, $message, $headers);
}
if ((empty($_GET['action']) || ($_GET['action'] != "sub" && $_GET['action'] != "unsub")) || !empty($err) || empty($code_err)) {
if ((empty($_GET['action']) && empty($code_err) || ($_GET['action'] != "sub" && $_GET['action'] != "unsub")) || !empty($err)) {
?>
<div class=h><h1 id=list>Mailing List</h1> <a aria-hidden=true href=#list>#list</a></div>