Merge pull request #3760 from IMM0rtalis/remove_logout_redirect_slash

- removed slash-adding for logout-header-redirect
remotes/origin/ldap_group_count
Bart Visscher 11 years ago
commit 7f05c23231
  1. 3
      lib/base.php

@ -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';

Loading…
Cancel
Save