mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Allow wildcard bot matching
git-svn-id: file:///svn/phpbb/trunk@4610 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
58ebfa1407
commit
330f36eb29
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class session
|
||||||
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
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'];
|
$bot = $row['user_id'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue