aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-10-18 12:51:50 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-10-18 12:51:50 +0000
commit330f36eb2917fac5dae2edb8435c8c99b5677fd4 (patch)
treea60be142d3666ce748e3ae5d182e2314183d3276
parent58ebfa1407ab06bac3ae731cbf751cb94ed3a041 (diff)
downloadforums-330f36eb2917fac5dae2edb8435c8c99b5677fd4.tar
forums-330f36eb2917fac5dae2edb8435c8c99b5677fd4.tar.gz
forums-330f36eb2917fac5dae2edb8435c8c99b5677fd4.tar.bz2
forums-330f36eb2917fac5dae2edb8435c8c99b5677fd4.tar.xz
forums-330f36eb2917fac5dae2edb8435c8c99b5677fd4.zip
Allow wildcard bot matching
git-svn-id: file:///svn/phpbb/trunk@4610 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/session.php2
1 files changed, 1 insertions, 1 deletions
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'];
}