From c3991ae13e728056c28a59468bcabbedbcfd01b3 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 14 Jul 2014 18:32:45 +0200
Subject: [PATCH] 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 2af693d5a6..e08cb20f73 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);
 				}
 			}
 
-- 
GitLab