]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the correct path when building the FileInfo for the search result
authorRobin Appelman <icewind@owncloud.com>
Mon, 14 Jul 2014 16:32:45 +0000 (18:32 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 14 Jul 2014 16:32:45 +0000 (18:32 +0200)
lib/private/files/view.php

index 2af693d5a645b55ea7c8b05c847965b7e36ec939..e08cb20f73dd8e1ada3114a2c0121485d8a820c1 100644 (file)
@@ -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);
                                }
                        }