Browse Source
Fix wrong variable used in ban lookup (#376)
` $_SERVER['REMOTE_ADDR']` was hardcoded in ban lookup instead of `$ip` variable
main
papereth
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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()) { |
|
|
|