From 3173ed29df07c7de9da241f43288eca8ca136dc5 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Fri, 2 Oct 2015 23:42:51 +0200 Subject: [PATCH] The minimum size for internalRootLength is 1 --- lib/private/files/node/folder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php index 23004fc352..00bf738227 100644 --- a/lib/private/files/node/folder.php +++ b/lib/private/files/node/folder.php @@ -222,7 +222,7 @@ class Folder extends Node implements \OCP\Files\Folder { $results = call_user_func_array(array($cache, $method), $args); foreach ($results as $result) { - if ($internalRootLength === 0 or substr($result['path'], 0, $internalRootLength) === $internalPath) { + if ($internalRootLength === 1 or substr($result['path'], 0, $internalRootLength) === $internalPath) { $result['internalPath'] = $result['path']; $result['path'] = substr($result['path'], $internalRootLength); $result['storage'] = $storage;