forked from vern/website
stupid idiot alert
Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
parent
de6cfe89b3
commit
ddb3069c27
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue