aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-11 17:42:21 +0200
committerRobin Appelman <robin@icewind.nl>2025-04-11 17:42:21 +0200
commitfb3e60862fd4cee2177e19df733eac0f16f6b0bf (patch)
treef78391ae2b8f8d560e6b309d97956ccc58426d1f
parent2ea3491240a2e435f797a3ff3d908f84a62543d1 (diff)
downloadnextcloud-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.php5
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 [];
+ }
}