mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-29 19:37:30 +01:00
$config['referer_match'] = false to disable
This commit is contained in:
parent
bec90150fe
commit
766f25bd31
3
post.php
3
post.php
@ -181,7 +181,8 @@ if (isset($_POST['delete'])) {
|
||||
error($config['error']['bot']);
|
||||
|
||||
// Check the referrer
|
||||
if (!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], urldecode($_SERVER['HTTP_REFERER'])))
|
||||
if ($config['referer_match'] !== false &&
|
||||
(!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], urldecode($_SERVER['HTTP_REFERER']))))
|
||||
error($config['error']['referer']);
|
||||
|
||||
checkDNSBL();
|
||||
|
Loading…
x
Reference in New Issue
Block a user