summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-02-26 16:05:09 +0100
committerBart Visscher <bartv@thisnet.nl>2014-02-26 16:05:09 +0100
commit7f05c23231b7f77ccc155cdc229e1ae21267e0e5 (patch)
tree32d7481def18174327a3cfc26b7944605252cb9e /lib
parentb7385986ae47e6898ad7adf502c8cfba258656a2 (diff)
parentb1fd9b39074f46b635d66c80d63994ffc99bf286 (diff)
downloadnextcloud-server-7f05c23231b7f77ccc155cdc229e1ae21267e0e5.tar.gz
nextcloud-server-7f05c23231b7f77ccc155cdc229e1ae21267e0e5.zip
Merge pull request #3760 from IMM0rtalis/remove_logout_redirect_slash
- removed slash-adding for logout-header-redirect
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 525d290931f..49cbb1279d1 100644
--- a/lib/base.php
+++ b/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';