mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix: fix recursive share check
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
8ab02bbac4
commit
cb118953b9
1 changed files with 1 additions and 1 deletions
|
|
@ -180,10 +180,10 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
$this->cache = new FailedCache();
|
||||
$this->rootPath = '';
|
||||
} else {
|
||||
$this->nonMaskedStorage = $ownerNode->getStorage();
|
||||
if ($this->nonMaskedStorage instanceof Wrapper && $this->nonMaskedStorage->isWrapperOf($this)) {
|
||||
throw new \Exception('recursive share detected');
|
||||
}
|
||||
$this->nonMaskedStorage = $ownerNode->getStorage();
|
||||
$this->sourcePath = $ownerNode->getPath();
|
||||
$this->rootPath = $ownerNode->getInternalPath();
|
||||
$this->storage = new PermissionsMask([
|
||||
|
|
|
|||
Loading…
Reference in a new issue