aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-29 15:21:18 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-07-30 07:04:01 +0000
commit95361516deb464c5d27bde283d3d620039f96714 (patch)
treebe89fb5f475aa3bef43d349205adb5ee334a44f0 /apps/files_sharing
parentbd369be6b437a1af859b1629c6f43ce9ece6448b (diff)
downloadnextcloud-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.php2
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([