1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

Fix wrong variable used in ban lookup (#376)

` $_SERVER['REMOTE_ADDR']` was hardcoded in ban lookup instead of `$ip` variable
This commit is contained in:
papereth 2020-08-10 03:31:50 +02:00 committed by GitHub
parent 01538ed33a
commit a268004c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -930,7 +930,7 @@ function checkBan($board = false) {
}
foreach ($ips as $ip) {
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board, $config['show_modname']);
$bans = Bans::find($ip, $board, $config['show_modname']);
foreach ($bans as &$ban) {
if ($ban['expires'] && $ban['expires'] < time()) {