Merge pull request #52689 from nextcloud/backport/52133/stable31

[stable31] fix: disable direct download for shares
This commit is contained in:
Robin Appelman 2025-05-16 10:23:24 +02:00 committed by GitHub
commit 9a52cfc25e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -555,4 +555,9 @@ class SharedStorage extends Jail implements LegacyISharedStorage, ISharedStorage
$this->init();
return parent::getUnjailedPath($path);
}
public function getDirectDownload(string $path): array|false {
// disable direct download for shares
return [];
}
}