Skip to content

Commit

Permalink
Merge pull request #46849 from nextcloud/fix-recursive-share-check
Browse files Browse the repository at this point in the history
fix: fix recursive share check
  • Loading branch information
solracsf authored Jul 30, 2024
2 parents c882d78 + 23cdb53 commit 6680dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ private function init() {
$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([
Expand Down

0 comments on commit 6680dd4

Please sign in to comment.