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:02:30 +0000 |
commit | fbabe24f642665f9dd975eb8b8cd87830a4f9a99 (patch) | |
tree | 134b40f97d64843fb02bf7451b999106c474db50 /apps | |
parent | 3c5bc5827f302cc24775626e85a1beaf231b8cf7 (diff) | |
download | nextcloud-server-fbabe24f642665f9dd975eb8b8cd87830a4f9a99.tar.gz nextcloud-server-fbabe24f642665f9dd975eb8b8cd87830a4f9a99.zip |
fix: fix recursive share check
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-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 e7277323d81..413a4460ad3 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -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([ |