Skip to content

Commit

Permalink
Merge pull request #46861 from nextcloud/backport/46849/stable27
Browse files Browse the repository at this point in the history
[stable27] fix: fix recursive share check
  • Loading branch information
AndyScherzinger authored Jul 30, 2024
2 parents 8ab02bb + cb11895 commit f92c5c1
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 @@ -180,10 +180,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 f92c5c1

Please sign in to comment.