- add slash if webroot is an empty string
- added comment
This commit is contained in:
parent
efea868704
commit
b1fd9b3907
|
@ -641,7 +641,8 @@ class OC {
|
||||||
OC_Preferences::deleteKey(OC_User::getUser(), 'login_token', $_COOKIE['oc_token']);
|
OC_Preferences::deleteKey(OC_User::getUser(), 'login_token', $_COOKIE['oc_token']);
|
||||||
}
|
}
|
||||||
OC_User::logout();
|
OC_User::logout();
|
||||||
header("Location: " . OC::$WEBROOT);
|
// redirect to webroot and add slash if webroot is empty
|
||||||
|
header("Location: " . OC::$WEBROOT.(empty(OC::$WEBROOT) ? '/' : ''));
|
||||||
} else {
|
} else {
|
||||||
if (is_null($file)) {
|
if (is_null($file)) {
|
||||||
$param['file'] = 'index.php';
|
$param['file'] = 'index.php';
|
||||||
|
|
Loading…
Reference in New Issue