mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix: fix recursive share check
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
3c5bc5827f
commit
fbabe24f64
1 changed files with 1 additions and 1 deletions
|
|
@ -178,10 +178,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