From 330f36eb2917fac5dae2edb8435c8c99b5677fd4 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 18 Oct 2003 12:51:50 +0000 Subject: [PATCH] Allow wildcard bot matching git-svn-id: file:///svn/phpbb/trunk@4610 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; }