diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 15:52:59 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 15:52:59 +1000 |
| commit | 00f4da3b82afda892906578ec1bd3c766fe0cd45 (patch) | |
| tree | 0280269a299f31f54c90183503ad464c8b4d6476 | |
| parent | de70fb6253446f86913562bc4ce0932562a753ce (diff) | |
$config['referer_match'] = false to disable
| -rw-r--r-- | post.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |
