From 9a2155914c71b8bdf5a01f33ffb2aa6bae6592ca Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 5 Jan 2015 04:39:33 -0800 Subject: [PATCH] Trial: checkDNSBL only if file --- post.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index b45464cd..bb690b85 100644 --- a/post.php +++ b/post.php @@ -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