From 00f4da3b82afda892906578ec1bd3c766fe0cd45 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 23 Sep 2013 15:52:59 +1000 Subject: [PATCH] $config['referer_match'] = false to disable --- post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/post.php b/post.php index b1528870..a8ba8dba 100644 --- a/post.php +++ b/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();