The full name has to be tested if it's a dir - fixes #19854

This commit is contained in:
Thomas Müller 2015-10-19 10:07:33 +02:00
parent 008082ebad
commit 7fe7655070
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class OC_Files {
if (!is_array($files)) {
$filename = $dir . '/' . $files;
if (!$view->is_dir($files)) {
if (!$view->is_dir($filename)) {
self::getSingleFile($view, $dir, $files, $onlyHeader);
return;
}