Skip to content
Snippets Groups Projects
Commit a1db280a authored by Robin Appelman's avatar Robin Appelman
Browse files

Share: fix downloading selected files from public shared folder

parent 7fa9181a
Branches
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ if (isset($path)) { ...@@ -113,7 +113,7 @@ if (isset($path)) {
// Download the file // Download the file
if (isset($_GET['download'])) { if (isset($_GET['download'])) {
if (isset($_GET['files'])) { // download selected files if (isset($_GET['files'])) { // download selected files
OC_Files::get($dir, $_GET['files'], $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); OC_Files::get($path, $_GET['files'], $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
} else { } else {
OC_Files::get($dir, $file, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); OC_Files::get($dir, $file, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment