forked from GithubBackups/vichan
Revert "allow mods to bypass DNSBL checks"
This reverts commit b3532ba54610aeddb5ee661528953fc0b44bdf84.
This commit is contained in:
parent
b3532ba546
commit
abbb6c282d
5
post.php
5
post.php
@ -200,6 +200,8 @@ if (isset($_POST['delete'])) {
|
|||||||
if ($config['referer_match'] !== false &&
|
if ($config['referer_match'] !== false &&
|
||||||
(!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], rawurldecode($_SERVER['HTTP_REFERER']))))
|
(!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], rawurldecode($_SERVER['HTTP_REFERER']))))
|
||||||
error($config['error']['referer']);
|
error($config['error']['referer']);
|
||||||
|
|
||||||
|
checkDNSBL();
|
||||||
|
|
||||||
// Check if banned
|
// Check if banned
|
||||||
checkBan($board['uri']);
|
checkBan($board['uri']);
|
||||||
@ -241,9 +243,6 @@ if (isset($_POST['delete'])) {
|
|||||||
$post['antispam_hash'] = checkSpam(array($board['uri'], isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null)));
|
$post['antispam_hash'] = checkSpam(array($board['uri'], isset($post['thread']) ? $post['thread'] : ($config['try_smarter'] && isset($_POST['page']) ? 0 - (int)$_POST['page'] : null)));
|
||||||
if ($post['antispam_hash'] === true)
|
if ($post['antispam_hash'] === true)
|
||||||
error($config['error']['spam']);
|
error($config['error']['spam']);
|
||||||
|
|
||||||
// Check DNSBL
|
|
||||||
checkDNSBL();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config['robot_enable'] && $config['robot_mute']) {
|
if ($config['robot_enable'] && $config['robot_mute']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user