Skip to content
Snippets Groups Projects
Commit 3affeb5b authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

destroy invalid sessions

parent f304ec14
Branches
No related tags found
No related merge requests found
......@@ -352,6 +352,10 @@ class OC{
OC_User::useBackend(new OC_User_Database());
OC_Group::useBackend(new OC_Group_Database());
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SESSION['user_id']) && $_SERVER['PHP_AUTH_USER'] != $_SESSION['user_id']) {
OC_User::logout();
}
// Load Apps
// This includes plugins for users and filesystems as well
global $RUNTIME_NOAPPS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment