summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-07-14 21:32:17 +0200
committericewind1991 <robin@icewind.nl>2014-07-14 21:32:17 +0200
commit592dad0a719f685e2c0e40a5ab31809bce872cbd (patch)
treec35a575409bd02d1866d460dbe91bc53bce4f292
parent9ee1c7ff7143c9d75a5f5a9f9477cc73f5d97717 (diff)
parentc3991ae13e728056c28a59468bcabbedbcfd01b3 (diff)
downloadnextcloud-server-592dad0a719f685e2c0e40a5ab31809bce872cbd.tar.gz
nextcloud-server-592dad0a719f685e2c0e40a5ab31809bce872cbd.zip
Merge pull request #9620 from owncloud/search-fileinfo-path
Use the correct path when building the FileInfo for the search result
-rw-r--r--lib/private/files/view.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 2af693d5a64..e08cb20f73d 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);
}
}