diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-13 16:56:11 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-13 16:56:11 +0200 |
commit | 4fd8cb43ae71ad49171282607cd54ac5d1054b42 (patch) | |
tree | 8128d2edce4e8dab91b96043c0acc1d9604d0fc7 | |
parent | 4b9465b937a7754d2b58a77cf8f12adeaccef993 (diff) | |
parent | 6cbabdf217f55df3655143aa82b6e5e74650df05 (diff) | |
download | nextcloud-server-4fd8cb43ae71ad49171282607cd54ac5d1054b42.tar.gz nextcloud-server-4fd8cb43ae71ad49171282607cd54ac5d1054b42.zip |
Merge pull request #11537 from owncloud/filenamewithzeroes
Fixed array detection on public download
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 5c75168d9a9..4320c105103 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -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'); |