mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Fix wrong bot ip check if bot ip was wrongly entered by admin. (Bug #42485)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9374 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -480,6 +480,13 @@ class session
|
||||
|
||||
foreach (explode(',', $row['bot_ip']) as $bot_ip)
|
||||
{
|
||||
$bot_ip = trim($bot_ip);
|
||||
|
||||
if (!$bot_ip)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strpos($this->ip, $bot_ip) === 0)
|
||||
{
|
||||
$bot = (int) $row['user_id'];
|
||||
|
Reference in New Issue
Block a user