Merge pull request #52133 from nextcloud/no-shared-direct-download

fix: disable direct download for shares
This commit is contained in:
Robin Appelman 2025-05-08 15:14:11 +02:00 committed by GitHub
commit 1228cfd3a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 [];
}
}