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
This commit is contained in:
Roland Hager 2013-06-07 13:44:17 +02:00
parent a39ecd5ea9
commit d2d71c8797
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}