mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Don't allow users into bot mode to end the illusion of being able to log in as googlebot while keeping privileges (that really wasn't possible). git-svn-id: file:///svn/phpbb/trunk@7785 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -414,6 +414,7 @@ class session
|
||||
$result = $db->sql_query($sql);
|
||||
$this->data = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
$bot = false;
|
||||
}
|
||||
else if ($user_id !== false && !sizeof($this->data))
|
||||
{
|
||||
@@ -427,8 +428,9 @@ class session
|
||||
$result = $db->sql_query($sql);
|
||||
$this->data = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
$bot = false;
|
||||
}
|
||||
|
||||
|
||||
// If no data was returned one or more of the following occurred:
|
||||
// Key didn't match one in the DB
|
||||
// User does not exist
|
||||
|
Reference in New Issue
Block a user