diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-14 18:32:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-07-14 18:32:45 +0200 |
commit | c3991ae13e728056c28a59468bcabbedbcfd01b3 (patch) | |
tree | c35a575409bd02d1866d460dbe91bc53bce4f292 /lib | |
parent | 9ee1c7ff7143c9d75a5f5a9f9477cc73f5d97717 (diff) | |
download | nextcloud-server-c3991ae13e728056c28a59468bcabbedbcfd01b3.tar.gz nextcloud-server-c3991ae13e728056c28a59468bcabbedbcfd01b3.zip |
Use the correct path when building the FileInfo for the search result
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 3 |
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); } } |