Browse Source

- add slash if webroot is an empty string

- added comment
tags/v7.0.0alpha2
Florian Scholz 11 years ago
parent
commit
b1fd9b3907
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/base.php

+ 2
- 1
lib/base.php View File

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

Loading…
Cancel
Save