diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 709e1c378c..9b8cb117bd 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -147,7 +147,7 @@ class session while ($row = $db->sql_fetchrow($result)) { - if ($row['bot_agent'] && $row['bot_agent'] == $this->browser) + if (preg_match('#' . str_replace('\*', '.*', preg_quote($row['bot_agent'], '#')) . '#i', $this->browser)) { $bot = $row['user_id']; }