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
remotes/origin/stable6
Roland Hager 13 years ago
parent a39ecd5ea9
commit d2d71c8797
  1. 3
      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);
}

Loading…
Cancel
Save