aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-05-08 15:14:11 +0200
committerGitHub <noreply@github.com>2025-05-08 15:14:11 +0200
commit1228cfd3a2dfb3320e071f5ff26a1bb78574f62c (patch)
treee965644ee25db1e87d891b706ecb539591f29c96 /apps/files_sharing/lib
parent349cc7b732763ddc12dcc3ffc24bd2808a364e8a (diff)
parentfb3e60862fd4cee2177e19df733eac0f16f6b0bf (diff)
downloadnextcloud-server-1228cfd3a2dfb3320e071f5ff26a1bb78574f62c.tar.gz
nextcloud-server-1228cfd3a2dfb3320e071f5ff26a1bb78574f62c.zip
Merge pull request #52133 from nextcloud/no-shared-direct-download
fix: disable direct download for shares
Diffstat (limited to 'apps/files_sharing/lib')
-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 [];
+ }
}