[Pkg-owncloud-commits] [owncloud] 06/63: The minimum size for internalRootLength is 1 (cherry picked from commit 3173ed2)

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:50:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8.0
in repository owncloud.

commit 5ed0d6079d832fee705f0a7fa40c3a6bfc9e3e2e
Author: Olivier Paroz <github at oparoz.com>
Date:   Fri Oct 2 23:42:51 2015 +0200

    The minimum size for internalRootLength is 1
    (cherry picked from commit 3173ed2)
---
 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 18a9391..cef5ef2 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -266,7 +266,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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list