1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 07:50:23 +01:00

Trial: checkDNSBL only if file

This commit is contained in:
8chan 2015-01-05 04:39:33 -08:00
parent 643e5ae80b
commit 9a2155914c

View File

@ -218,8 +218,6 @@ elseif (isset($_POST['post'])) {
if (!openBoard($post['board']))
error($config['error']['noboard']);
checkDNSBL();
// Check if banned
checkBan($board['uri']);
@ -393,6 +391,9 @@ elseif (isset($_POST['post'])) {
$post['body'] = $_POST['body'];
$post['password'] = $_POST['password'];
$post['has_file'] = (!isset($post['embed']) && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || !empty($_FILES['file']['name'])));
if ($post['has_file'])
checkDNSBL();
if (!($post['has_file'] || isset($post['embed'])) || (($post['op'] && $config['force_body_op']) || (!$post['op'] && $config['force_body']))) {
// http://stackoverflow.com/a/4167053