Merge pull request #3760 from IMM0rtalis/remove_logout_redirect_slash

- removed slash-adding for logout-header-redirect
This commit is contained in:
Bart Visscher 2014-02-26 16:05:09 +01:00
commit 7f05c23231
1 changed files with 2 additions and 1 deletions

View File

@ -752,7 +752,8 @@ class OC {
OC_Preferences::deleteKey(OC_User::getUser(), 'login_token', $_COOKIE['oc_token']);
}
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 {
if (is_null($file)) {
$param['file'] = 'index.php';