summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-06-10 15:27:30 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-06-11 15:41:33 +0200
commite9b5514186a996d424346db0727ec677f98281fa (patch)
tree2aded60fbea0caf9ab72ba25fe615fc36541cf7a /lib/private/legacy/OC_Util.php
parent83303ef9dfbdc07ff5bddd0ee64abdda4cf35647 (diff)
downloadnextcloud-server-e9b5514186a996d424346db0727ec677f98281fa.tar.gz
nextcloud-server-e9b5514186a996d424346db0727ec677f98281fa.zip
prevent the root storage from accidentally scanning user folders
while this scan *should* never be triggered, it's good to have some failsafe to ensure that the users home contents don't end up getting scanned in the root storage Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy/OC_Util.php')
-rw-r--r--lib/private/legacy/OC_Util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index 71f6edba0bf..dde47041c2b 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -63,6 +63,7 @@
*/
use OC\AppFramework\Http\Request;
+use OC\Files\Storage\LocalRootStorage;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\ILogger;
@@ -88,7 +89,7 @@ class OC_Util {
//first set up the local "root" storage
\OC\Files\Filesystem::initMountManager();
if (!self::$rootMounted) {
- \OC\Files\Filesystem::mount('\OC\Files\Storage\Local', ['datadir' => $configDataDirectory], '/');
+ \OC\Files\Filesystem::mount(LocalRootStorage::class, ['datadir' => $configDataDirectory], '/');
self::$rootMounted = true;
}
}