Quellcode durchsuchen

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 vor 11 Jahren
Ursprung
Commit
17fd6482d8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      lib/files.php

+ 1
- 1
lib/files.php Datei anzeigen

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

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


Laden…
Abbrechen
Speichern