Don't automatically setup the filesystem the moment we load OC\Files\FileSystem

remotes/origin/fix-10825
Robin Appelman 11 years ago
parent 90f66e0f8d
commit a9a37b5363
  1. 1
      lib/base.php
  2. 2
      lib/private/files/filesystem.php
  3. 6
      lib/private/user.php

@ -776,6 +776,7 @@ class OC {
if (OC_User::isLoggedIn()) {
OC_App::loadApps();
OC_User::setupBackends();
OC_Util::setupFS();
if (isset($_GET["logout"]) and ($_GET["logout"])) {
OC_JSON::callCheck();
if (isset($_COOKIE['oc_token'])) {

@ -794,5 +794,3 @@ class Filesystem {
return self::$defaultInstance->getETag($path);
}
}
\OC_Util::setupFS();

@ -232,7 +232,11 @@ class OC_User {
*/
public static function login($uid, $password) {
session_regenerate_id(true);
return self::getUserSession()->login($uid, $password);
$result = self::getUserSession()->login($uid, $password);
if ($result) {
OC_Util::setupFS($uid);
}
return $result;
}
/**

Loading…
Cancel
Save