stupid idiot alert

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-08-26 06:07:30 -04:00
parent de6cfe89b3
commit ddb3069c27
Signed by untrusted user: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 2 additions and 2 deletions

View File

@ -31,11 +31,11 @@
if (!empty($_GET['email'])) {
if (filter_var(sanitize($_GET['email']), FILTER_VALIDATE_EMAIL)) {
if (preg_match("/^" . preg_quote($_GET['email']) . "$/m", file_get_contents("/var/spool/list")) === 1) {
if ($_GET['action'] == "sub")
if ($_GET['action'] == "unsub")
$email = sanitize($_GET['email']);
else $err = "E-mail already in list";
} else {
if ($_GET['action'] == "unsub")
if ($_GET['action'] == "sub")
$email = sanitize($_GET['email']);
else $err = "E-mail not in list";
}