From fb3e60862fd4cee2177e19df733eac0f16f6b0bf Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 11 Apr 2025 17:42:21 +0200 Subject: fix: disable direct download for shares Signed-off-by: Robin Appelman --- apps/files_sharing/lib/SharedStorage.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files_sharing/lib') diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index dfd4854de1f..1014b0d37d9 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -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 []; + } } -- cgit v1.2.3