From d2d71c8797f7e7b51e55bec4217738faaf6a08ca Mon Sep 17 00:00:00 2001 From: Roland Hager Date: Fri, 7 Jun 2013 13:44:17 +0200 Subject: [PATCH] FIX: Download of files named "true" or "false" impossible It was not possible to download a file called "true" or "false" (caseinsensitive) when clicking the link "download" due to the result of json_decode(). Both cases are now implicitly checked. Hotfix provided by Herbert Pophal --- apps/files/ajax/download.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php index 7c8dcb372e..222eba551d 100644 --- a/apps/files/ajax/download.php +++ b/apps/files/ajax/download.php @@ -34,8 +34,9 @@ $files = $_GET["files"]; $dir = $_GET["dir"]; $files_list = json_decode($files); + // in case we get only a single file -if ($files_list === NULL ) { +if ($files_list === NULL || $files_list === true || $files_list === false) { $files_list = array($files); }