diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-13 12:54:21 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-13 12:54:21 +0200 |
commit | 6cbabdf217f55df3655143aa82b6e5e74650df05 (patch) | |
tree | 8128d2edce4e8dab91b96043c0acc1d9604d0fc7 | |
parent | 4b9465b937a7754d2b58a77cf8f12adeaccef993 (diff) | |
download | nextcloud-server-6cbabdf217f55df3655143aa82b6e5e74650df05.tar.gz nextcloud-server-6cbabdf217f55df3655143aa82b6e5e74650df05.zip |
Fixed array detection on public download
When downloading a folder called "0001" PHP should fallback to parsing
it as string and properly detect that it is not a JSON array.
-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'); |