瀏覽代碼

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 年之前
父節點
當前提交
17fd6482d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/files.php

+ 1
- 1
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];
}


Loading…
取消
儲存