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

fix: disable direct download for shares
pull/52665/head
Robin Appelman 5 months ago committed by GitHub
commit 1228cfd3a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      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 [];
}
}

Loading…
Cancel
Save