1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

nah, stuff the * wildcard ... just match partially, should be sufficient I think

git-svn-id: file:///svn/phpbb/trunk@4611 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-10-18 12:57:24 +00:00
parent 330f36eb29
commit 3d46c543cd
3 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ class session
while ($row = $db->sql_fetchrow($result))
{
if (preg_match('#' . str_replace('\*', '.*', preg_quote($row['bot_agent'], '#')) . '#i', $this->browser))
if (preg_match('#' . preg_quote($row['bot_agent'], '#') . '#i', $this->browser))
{
$bot = $row['user_id'];
}