aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-29 15:21:18 +0200
committerGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-07-30 07:41:26 +0200
commit23cdb539ce53b1ccfcd0856542f4a940e591d240 (patch)
tree2bfc967e171fb18200724de8ec46582057d682e7 /apps/files_sharing
parent24a0d3e1014182bc43ffb5013de96f4639295850 (diff)
downloadnextcloud-server-23cdb539ce53b1ccfcd0856542f4a940e591d240.tar.gz
nextcloud-server-23cdb539ce53b1ccfcd0856542f4a940e591d240.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 a67b79542e1..2870c14a2bd 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -151,10 +151,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([