From fc8caec0eccaa5c92f7547ba2d826f80233be3f7 Mon Sep 17 00:00:00 2001 From: 8chan Date: Sat, 19 Apr 2014 20:03:27 +0000 Subject: [PATCH] Fix "You look like a bot" bug when board sets its own locale --- post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/post.php b/post.php index 8489faa8..643da948 100644 --- a/post.php +++ b/post.php @@ -174,6 +174,10 @@ if (isset($_POST['delete'])) { } else $post['op'] = true; + // Check if board exists + if (!openBoard($post['board'])) + error($config['error']['noboard']); + if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) || (!$post['op'] && $_POST['post'] == $config['button_reply']))) error($config['error']['bot']); @@ -185,10 +189,6 @@ if (isset($_POST['delete'])) { checkDNSBL(); - // Check if board exists - if (!openBoard($post['board'])) - error($config['error']['noboard']); - // Check if banned checkBan($board['uri']);