diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-07 13:15:58 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-07 13:15:58 +0200 |
commit | 9f257456494cf17ad9288d3ca8bfd5004f74dd91 (patch) | |
tree | 0d5d561dd6187fea3bb3885fa170b5ef8d4d78be /lib/private/files.php | |
parent | cd818e7419fb39d97683ecc5803534b0ed632596 (diff) | |
download | nextcloud-server-9f257456494cf17ad9288d3ca8bfd5004f74dd91.tar.gz nextcloud-server-9f257456494cf17ad9288d3ca8bfd5004f74dd91.zip |
Fix single file download - fixes #19614
Diffstat (limited to 'lib/private/files.php')
-rw-r--r-- | lib/private/files.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files.php b/lib/private/files.php index ad03904e036..e24e10ec299 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -82,6 +82,9 @@ class OC_Files { if (is_array($files) && count($files) === 1) { $files = $files[0]; + } + + if (!is_array($files)) { $filename = $dir . '/' . $files; if (!$view->is_dir($files)) { self::getSingleFile($view, $dir, $files, $onlyHeader); |