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:
parent
071ffaa69c
commit
8602f067dc
8
post.php
8
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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user