diff options
author | Robin Appelman <robin@icewind.nl> | 2025-04-11 17:42:21 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2025-04-11 17:42:21 +0200 |
commit | fb3e60862fd4cee2177e19df733eac0f16f6b0bf (patch) | |
tree | f78391ae2b8f8d560e6b309d97956ccc58426d1f | |
parent | 2ea3491240a2e435f797a3ff3d908f84a62543d1 (diff) | |
download | nextcloud-server-no-shared-direct-download.tar.gz nextcloud-server-no-shared-direct-download.zip |
fix: disable direct download for sharesno-shared-direct-download
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 []; + } } |