镜像自地址
https://github.com/nextcloud/server.git
已同步 2024-07-25 13:54:59 +02:00
Redirect to index if the logout link is accessed without valid session
This is needed to prevent "Token expired" messages while login if a session is expired @see https://github.com/owncloud/core/pull/8443#issuecomment-42425583
这个提交包含在:
父节点
73b914ddbc
当前提交
e1e1009ccc
@ -768,6 +768,14 @@ class OC {
|
||||
return;
|
||||
}
|
||||
|
||||
// Redirect to index if the logout link is accessed without valid session
|
||||
// this is needed to prevent "Token expired" messages while login if a session is expired
|
||||
// @see https://github.com/owncloud/core/pull/8443#issuecomment-42425583
|
||||
if(isset($_GET['logout']) && !OC_User::isLoggedIn()) {
|
||||
header("Location: " . OC::$WEBROOT.(empty(OC::$WEBROOT) ? '/' : ''));
|
||||
return;
|
||||
}
|
||||
|
||||
// Someone is logged in :
|
||||
if (OC_User::isLoggedIn()) {
|
||||
OC_App::loadApps();
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户