diff options
author | Florian Scholz <work@bgstyle.de> | 2013-06-25 10:45:37 +0200 |
---|---|---|
committer | Florian Scholz <work@bgstyle.de> | 2013-06-25 10:45:37 +0200 |
commit | b1fd9b39074f46b635d66c80d63994ffc99bf286 (patch) | |
tree | 21abb31ec7b1013a44e716bf27a1cd2c6ada97ad | |
parent | efea86870473da5a2cdc867e171562525266c663 (diff) | |
download | nextcloud-server-b1fd9b39074f46b635d66c80d63994ffc99bf286.tar.gz nextcloud-server-b1fd9b39074f46b635d66c80d63994ffc99bf286.zip |
- add slash if webroot is an empty string
- added comment
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index ff9dd1ad1eb..39e0249477b 100644 --- a/lib/base.php +++ b/lib/base.php @@ -641,7 +641,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'; |