mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #11537 from owncloud/filenamewithzeroes
Fixed array detection on public download
This commit is contained in:
commit
4fd8cb43ae
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ if (isset($path)) {
|
|||
$files = $_GET['files'];
|
||||
$files_list = json_decode($files);
|
||||
// in case we get only a single file
|
||||
if ($files_list === NULL ) {
|
||||
if (!is_array($files_list)) {
|
||||
$files_list = array($files);
|
||||
}
|
||||
OC_Files::get($path, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD');
|
||||
|
|
|
|||
Loading…
Reference in a new issue