mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Cache: mount user mountpoints to make sure that // exists before accessing it. Fixes #2553 and #2374
This commit is contained in:
1
lib/cache/file.php
vendored
1
lib/cache/file.php
vendored
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user