From a268004c7ae8625f13e04e12bcaddc68a6000c37 Mon Sep 17 00:00:00 2001 From: papereth <69432409+papereth@users.noreply.github.com> Date: Mon, 10 Aug 2020 03:31:50 +0200 Subject: [PATCH] Fix wrong variable used in ban lookup (#376) ` $_SERVER['REMOTE_ADDR']` was hardcoded in ban lookup instead of `$ip` variable --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index a58ea943..23ade9fa 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -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()) {