summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-07-02 21:07:16 +0200
committerGitHub <noreply@github.com>2020-07-02 21:07:16 +0200
commitd53e005458ac73e77eacc5d98f9da22404fe1f9d (patch)
tree7ae713f9dccc0ac0853a211623ac8cfc39dc9259 /lib/private/legacy
parentc97e85c6da588ebf105944d4f07e1b2bebe6dbaa (diff)
parente9b5514186a996d424346db0727ec677f98281fa (diff)
downloadnextcloud-server-d53e005458ac73e77eacc5d98f9da22404fe1f9d.tar.gz
nextcloud-server-d53e005458ac73e77eacc5d98f9da22404fe1f9d.zip
Merge pull request #21360 from nextcloud/root-storage-prevent-scanning
prevent the root storage from accidentally scanning user folders
Diffstat (limited to 'lib/private/legacy')
-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;
}
}