diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-29 15:21:18 +0200 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-07-30 07:41:26 +0200 |
commit | 23cdb539ce53b1ccfcd0856542f4a940e591d240 (patch) | |
tree | 2bfc967e171fb18200724de8ec46582057d682e7 /apps/files_sharing | |
parent | 24a0d3e1014182bc43ffb5013de96f4639295850 (diff) | |
download | nextcloud-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.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 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([ |