summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-19 10:07:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-19 10:07:33 +0200
commit7fe7655070c3b4fc206af79b7a7b2573c271cce1 (patch)
tree2b7eab62493acfda9f212b1d64c03a8194485e36 /lib/private
parent008082ebadff5f029484c5aa351c3bde11c802d6 (diff)
downloadnextcloud-server-7fe7655070c3b4fc206af79b7a7b2573c271cce1.tar.gz
nextcloud-server-7fe7655070c3b4fc206af79b7a7b2573c271cce1.zip
The full name has to be tested if it's a dir - fixes #19854
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index e24e10ec299..919ca4ba71c 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -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;
}