forked from GithubBackups/vichan
This bot check is weird and keeps breaking when locales do
This commit is contained in:
parent
a838e2986c
commit
95e99d75ba
2
post.php
2
post.php
@ -209,7 +209,7 @@ if (isset($_POST['delete'])) {
|
|||||||
|
|
||||||
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']);
|
||||||
|
|
||||||
// Check the referrer
|
// Check the referrer
|
||||||
if ($config['referer_match'] !== false &&
|
if ($config['referer_match'] !== false &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user