[Pkg-owncloud-commits] [owncloud] 12/59: Use the correct path when building the FileInfo for the search result

David Prévot taffit at moszumanska.debian.org
Fri Jul 18 16:19:25 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit 8ec00dcb6604b395620efb7b36ac36a47b90d2c5
Author: Robin Appelman <icewind at owncloud.com>
Date:   Mon Jul 14 18:32:45 2014 +0200

    Use the correct path when building the FileInfo for the search result
---
 lib/private/files/view.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 2af693d..e08cb20 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1103,8 +1103,9 @@ class View {
 			foreach ($results as $result) {
 				if (substr($mountPoint . $result['path'], 0, $rootLength + 1) === $this->fakeRoot . '/') {
 					$internalPath = $result['path'];
+					$path = $mountPoint . $result['path'];
 					$result['path'] = substr($mountPoint . $result['path'], $rootLength);
-					$files[] = new FileInfo($mountPoint . $result['path'], $storage, $internalPath, $result);
+					$files[] = new FileInfo($path, $storage, $internalPath, $result);
 				}
 			}
 

-- 
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