1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

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
This commit is contained in:
H0K4 2017-11-06 13:19:35 +01:00 committed by Fredrick Brennan
parent 464d3b4a04
commit b3e16cfa0d

View File

@ -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);