aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-11 17:42:21 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-05-08 13:14:31 +0000
commit9f77860b54a34f6ffc243347c922875efbaab6ee (patch)
treea6a82f6e12b03bd358f39a3b5c7c734ec4376140
parentf16ef470efdc46c7a0f857dbe61df737597f2b07 (diff)
downloadnextcloud-server-backport/52133/stable31.tar.gz
nextcloud-server-backport/52133/stable31.zip
fix: disable direct download for sharesbackport/52133/stable31
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 313f525d4b4..2594e25a0a6 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 [];
+ }
}