aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-10-02 23:42:51 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-06 15:54:17 +0200
commit3173ed29df07c7de9da241f43288eca8ca136dc5 (patch)
treec4fe7254a2ffd50856f3b8cbeec0bed32434be6b
parentbb4246c9a8dc40d844ad94492cb40ece5bd35ef6 (diff)
downloadnextcloud-server-3173ed29df07c7de9da241f43288eca8ca136dc5.tar.gz
nextcloud-server-3173ed29df07c7de9da241f43288eca8ca136dc5.zip
The minimum size for internalRootLength is 1
-rw-r--r--lib/private/files/node/folder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index 23004fc3527..00bf738227d 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;