summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorOlivier Tétard <olivier.tetard@miskin.fr>2013-03-12 11:53:41 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-12 20:03:54 +0100
commit17fd6482d873c170278aafeceb9005415f272901 (patch)
tree0f4520e705c8f00bc79eebb9cdea08cd5ec48cf2 /lib/files.php
parent2e9d641337be76051d46dba793446a65f7ee5a2a (diff)
downloadnextcloud-server-17fd6482d873c170278aafeceb9005415f272901.tar.gz
nextcloud-server-17fd6482d873c170278aafeceb9005415f272901.zip
Fix file sharing via public link for one particular file.
Fix OC_Files::get() to not return the first character of the filename if only one file is requested.
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php
index 2433502444c..04ba51d9d24 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -50,7 +50,7 @@ class OC_Files {
$xsendfile = true;
}
- if (count($files) == 1) {
+ if (is_array($files) && count($files) == 1) {
$files = $files[0];
}