From e5a107cc455122edf729b61ee249c35caedda02f Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 8 Mar 2016 11:23:20 +0100 Subject: Fix share mounting recursion --- apps/files_sharing/lib/sharedstorage.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files_sharing') diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 600599d7175..6998f94698e 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -85,6 +85,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { } private function isValid() { + $this->init(); return ($this->sourceRootInfo->getPermissions() & Constants::PERMISSION_SHARE) === Constants::PERMISSION_SHARE; } @@ -566,6 +567,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { } public function getCache($path = '', $storage = null) { + $this->init(); if (!$storage) { $storage = $this; } -- cgit v1.2.3