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.
This commit is contained in:
parent
2e9d641337
commit
17fd6482d8
|
@ -50,7 +50,7 @@ class OC_Files {
|
||||||
$xsendfile = true;
|
$xsendfile = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($files) == 1) {
|
if (is_array($files) && count($files) == 1) {
|
||||||
$files = $files[0];
|
$files = $files[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue