mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-20 12:41:17 +01:00
Fix "You look like a bot" bug when board sets its own locale
This commit is contained in:
parent
b7618c303e
commit
fc8caec0ec
8
post.php
8
post.php
@ -174,6 +174,10 @@ if (isset($_POST['delete'])) {
|
|||||||
} else
|
} else
|
||||||
$post['op'] = true;
|
$post['op'] = true;
|
||||||
|
|
||||||
|
// Check if board exists
|
||||||
|
if (!openBoard($post['board']))
|
||||||
|
error($config['error']['noboard']);
|
||||||
|
|
||||||
if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) ||
|
if (!(($post['op'] && $_POST['post'] == $config['button_newtopic']) ||
|
||||||
(!$post['op'] && $_POST['post'] == $config['button_reply'])))
|
(!$post['op'] && $_POST['post'] == $config['button_reply'])))
|
||||||
error($config['error']['bot']);
|
error($config['error']['bot']);
|
||||||
@ -185,10 +189,6 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
checkDNSBL();
|
checkDNSBL();
|
||||||
|
|
||||||
// Check if board exists
|
|
||||||
if (!openBoard($post['board']))
|
|
||||||
error($config['error']['noboard']);
|
|
||||||
|
|
||||||
// Check if banned
|
// Check if banned
|
||||||
checkBan($board['uri']);
|
checkBan($board['uri']);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user