Replace period in table name
This commit is contained in:
parent
feab0c3a87
commit
8141e64d0e
BIN
database.mwb
BIN
database.mwb
Binary file not shown.
BIN
database.mwb.bak
BIN
database.mwb.bak
Binary file not shown.
@ -135,12 +135,12 @@ try {
|
||||
// Check local spammer database
|
||||
if (env("require_database")) {
|
||||
if (!empty($clientip)) {
|
||||
if ($database->has("net.contactspam_spammers", ["ip" => $clientip])) {
|
||||
if ($database->has("net_contactspam-spammers", ["ip" => $clientip])) {
|
||||
exitWithJson(["status" => "OK", "clean" => false, "filter" => "netsyms_ip_blacklist", "hit" => $clientip, "message" => "A computer at your IP address has sent spam in the past. Your message has been blocked."]);
|
||||
}
|
||||
}
|
||||
if (!empty($clientip)) {
|
||||
if ($database->has("net.contactspam_spammers", ["email" => $email_lower])) {
|
||||
if ($database->has("net_contactspam-spammers", ["email" => $email_lower])) {
|
||||
exitWithJson(["status" => "OK", "clean" => false, "filter" => "netsyms_email_blacklist", "hit" => $clientip, "message" => "Someone put your email as the from address on a spam message. Your message has been blocked."]);
|
||||
}
|
||||
}
|
||||
|
@ -5,13 +5,13 @@ $clientip = $VARS["ipaddr"] ?? "";
|
||||
|
||||
if (!empty($fromemail) && filter_var($fromemail, FILTER_VALIDATE_EMAIL)) {
|
||||
$fromemail = strtolower($fromemail);
|
||||
if ($database->has("net.contactspam_spammers", ["email" => $fromemail])) {
|
||||
$database->update("net.contactspam_spammers", [
|
||||
if ($database->has("net_contactspam-spammers", ["email" => $fromemail])) {
|
||||
$database->update("net_contactspam-spammers", [
|
||||
"entrylastreported" => date("Y-m-d H:i:s"),
|
||||
"reportcount[+]" => 1
|
||||
], ["email" => $fromemail]);
|
||||
} else {
|
||||
$database->insert("net.contactspam_spammers", [
|
||||
$database->insert("net_contactspam-spammers", [
|
||||
"entrylastreported" => date("Y-m-d H:i:s"),
|
||||
"reportcount" => 1,
|
||||
"email" => $fromemail
|
||||
@ -20,13 +20,13 @@ if (!empty($fromemail) && filter_var($fromemail, FILTER_VALIDATE_EMAIL)) {
|
||||
}
|
||||
|
||||
if (!empty($clientip) && filter_var($clientip, FILTER_VALIDATE_IP)) {
|
||||
if ($database->has("net.contactspam_spammers", ["ip" => $clientip])) {
|
||||
$database->update("net.contactspam_spammers", [
|
||||
if ($database->has("net_contactspam-spammers", ["ip" => $clientip])) {
|
||||
$database->update("net_contactspam-spammers", [
|
||||
"entrylastreported" => date("Y-m-d H:i:s"),
|
||||
"reportcount[+]" => 1
|
||||
], ["ip" => $clientip]);
|
||||
} else {
|
||||
$database->insert("net.contactspam_spammers", [
|
||||
$database->insert("net_contactspam-spammers", [
|
||||
"entrylastreported" => date("Y-m-d H:i:s"),
|
||||
"reportcount" => 1,
|
||||
"ip" => $clientip
|
||||
|
Loading…
x
Reference in New Issue
Block a user