Browse Source

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.
tags/v6.0.0alpha2
Olivier Tétard 11 years ago
parent
commit
17fd6482d8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/files.php

+ 1
- 1
lib/files.php View File

@@ -50,7 +50,7 @@ class OC_Files {
$xsendfile = true;
}

if (count($files) == 1) {
if (is_array($files) && count($files) == 1) {
$files = $files[0];
}


Loading…
Cancel
Save