Skip to content
Snippets Groups Projects
Commit 72a48ca3 authored by Björn Schießle's avatar Björn Schießle
Browse files

fix download of single publically shared files.

parent dcad7aec
Branches
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment