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

Fix "You look like a bot" bug when board sets its own locale

This commit is contained in:
8chan 2014-04-19 20:03:27 +00:00
parent 071ffaa69c
commit 8602f067dc

View File

@ -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']);