Cache: mount user mountpoints to make sure that // exists before accessing it. Fixes #2553 and #2374

This commit is contained in:
Arthur Schiwon 2013-04-26 13:20:12 +02:00
parent 96b1e54d4a
commit c8a2beccb0
1 changed files with 1 additions and 0 deletions

1
lib/cache/file.php vendored
View File

@ -14,6 +14,7 @@ class OC_Cache_File{
return $this->storage;
}
if(OC_User::isLoggedIn()) {
\OC\Files\Filesystem::initMountPoints(OC_User::getUser());
$subdir = 'cache';
$view = new \OC\Files\View('/'.OC_User::getUser());
if(!$view->file_exists($subdir)) {