From b3e16cfa0dc3183cb96196399d942c64be263a60 Mon Sep 17 00:00:00 2001 From: H0K4 <33396750+H0K4@users.noreply.github.com> Date: Mon, 6 Nov 2017 13:19:35 +0100 Subject: [PATCH] fixed banned redirect i think (#270) * fixed banned redirect i think my tinyboard script has been altered a lot but i think this is the fix for the wrong ban redirect. * maybe it's just this --- post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index b30993e9..a446e32b 100644 --- a/post.php +++ b/post.php @@ -378,6 +378,10 @@ if (isset($_POST['delete'])) { if (!$dropped_post) { + + // Check if banned + checkBan($board['uri']); + // Check for CAPTCHA right after opening the board so the "return" link is in there if ($config['recaptcha']) { if (!isset($_POST['g-recaptcha-response'])) @@ -418,8 +422,6 @@ if (isset($_POST['delete'])) { checkDNSBL(); - // Check if banned - checkBan($board['uri']); if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { check_login(false);