diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-16 16:34:16 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-03-16 16:34:16 +0000 |
commit | 3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d (patch) | |
tree | 4dd229beb89a953f58895f12f7aa0863b8d70ab5 /phpBB/includes/session.php | |
parent | 3b918a234e3917080982581d200e5baab2a5bd79 (diff) | |
download | forums-3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d.tar forums-3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d.tar.gz forums-3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d.tar.bz2 forums-3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d.tar.xz forums-3c5b06f8aa65161334ecc00e3e7ec2f9b6e4565d.zip |
Fix wrong bot ip check if bot ip was wrongly entered by admin. (Bug #42485)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9374 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 6112decf09..a349eb7e14 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -480,6 +480,13 @@ class session foreach (explode(',', $row['bot_ip']) as $bot_ip) { + $bot_ip = trim($bot_ip); + + if (!$bot_ip) + { + continue; + } + if (strpos($this->ip, $bot_ip) === 0) { $bot = (int) $row['user_id']; |