diff options
author | Roland Hager <roland.hager@tu-berlin.de> | 2013-06-07 13:44:17 +0200 |
---|---|---|
committer | Roland Hager <roland.hager@tu-berlin.de> | 2013-06-12 17:25:21 +0200 |
commit | d2d71c8797f7e7b51e55bec4217738faaf6a08ca (patch) | |
tree | f8f41ea59f4f2819b16fa563ebc3aae4f8f2e9e5 /apps | |
parent | a39ecd5ea977f18fac9c7c3683a7988434f6b95f (diff) | |
download | nextcloud-server-d2d71c8797f7e7b51e55bec4217738faaf6a08ca.tar.gz nextcloud-server-d2d71c8797f7e7b51e55bec4217738faaf6a08ca.zip |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/ajax/download.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/download.php b/apps/files/ajax/download.php index 7c8dcb372e2..222eba551d4 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); } |