Skip to content
Snippets Groups Projects
Commit d2d71c87 authored by Roland Hager's avatar Roland Hager
Browse files

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
parent a39ecd5e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment