mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 02:21:12 -04:00
fix download of single publically shared files.
This commit is contained in:
parent
dcad7aec82
commit
72a48ca35e
1 changed files with 6 additions and 1 deletions
|
|
@ -82,7 +82,12 @@ if (isset($_GET['file']) || isset($_GET['dir'])) {
|
|||
}
|
||||
// Download the file
|
||||
if (isset($_GET['download'])) {
|
||||
OC_Files::get($path, '', $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
|
||||
if (isset($_GET['dir'])) {
|
||||
OC_Files::get($path, '', $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
|
||||
} else {
|
||||
OC_Files::get("", $path, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
|
||||
}
|
||||
|
||||
} else {
|
||||
OCP\Util::addStyle('files_sharing', 'public');
|
||||
OCP\Util::addScript('files_sharing', 'public');
|
||||
|
|
|
|||
Loading…
Reference in a new issue