Skip to content

Commit 1228cfd

Browse files
authored
Merge pull request #52133 from nextcloud/no-shared-direct-download
fix: disable direct download for shares
2 parents 349cc7b + fb3e608 commit 1228cfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/files_sharing/lib/SharedStorage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,9 @@ public function getUnjailedPath(string $path): string {
555555
$this->init();
556556
return parent::getUnjailedPath($path);
557557
}
558+
559+
public function getDirectDownload(string $path): array|false {
560+
// disable direct download for shares
561+
return [];
562+
}
558563
}

0 commit comments

Comments
 (0)