mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 17:31:00 +01:00
Close ctrlcctrlv/infinity#161
This commit is contained in:
parent
aa5d0e6e4b
commit
a7adf844eb
10
post.php
10
post.php
@ -218,6 +218,11 @@ elseif (isset($_POST['post'])) {
|
||||
if (!openBoard($post['board']))
|
||||
error($config['error']['noboard']);
|
||||
|
||||
checkDNSBL();
|
||||
|
||||
// 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['recaptcha_challenge_field']) || !isset($_POST['recaptcha_response_field']))
|
||||
@ -257,11 +262,6 @@ elseif (isset($_POST['post'])) {
|
||||
error($config['error']['referer']);
|
||||
}
|
||||
|
||||
checkDNSBL();
|
||||
|
||||
// Check if banned
|
||||
checkBan($board['uri']);
|
||||
|
||||
if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) {
|
||||
require 'inc/mod/auth.php';
|
||||
check_login(false);
|
||||
|
Loading…
Reference in New Issue
Block a user