diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-29 15:21:18 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-30 07:04:01 +0000 |
commit | 95361516deb464c5d27bde283d3d620039f96714 (patch) | |
tree | be89fb5f475aa3bef43d349205adb5ee334a44f0 /apps/files_sharing | |
parent | bd369be6b437a1af859b1629c6f43ce9ece6448b (diff) | |
download | nextcloud-server-95361516deb464c5d27bde283d3d620039f96714.tar.gz nextcloud-server-95361516deb464c5d27bde283d3d620039f96714.zip |
fix: fix recursive share check
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index d5c264def3b..d677eec7b47 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -177,10 +177,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([ |