From 604ba1d0f71e81c3d10c8287df6ad22f1a94f1a7 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Wed, 7 Aug 2013 17:01:14 +0200 Subject: [PATCH] Check expected type after JSON decode instead of checking what is not expected. This will also allow "true" and "false" as filenames instead of only "null". --- apps/files/ajax/download.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php index 7c8dcb372e2..b2bfd53506d 100644 --- a/apps/files/ajax/download.php +++ b/apps/files/ajax/download.php @@ -35,7 +35,7 @@ $dir = $_GET["dir"]; $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); } -- 2.39.5