aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-10-18 12:57:24 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-10-18 12:57:24 +0000
commit3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e (patch)
treee4c0c85882f0c53fd54d0f1a9f99d035da7b07a8 /phpBB/includes/session.php
parent330f36eb2917fac5dae2edb8435c8c99b5677fd4 (diff)
downloadforums-3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e.tar
forums-3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e.tar.gz
forums-3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e.tar.bz2
forums-3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e.tar.xz
forums-3d46c543cdcb8f1f9e0d5fda623f38323a3c9c4e.zip
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
Diffstat (limited to 'phpBB/includes/session.php')
-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 9b8cb117bd..3b7b528f77 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -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'];
}