Merge pull request #8351 from owncloud/search-mime-substorage

fix paths of searchByMime results on substorages
This commit is contained in:
icewind1991 2014-04-25 14:03:43 +02:00
commit 6925e722fa
1 changed files with 3 additions and 2 deletions

View File

@ -1109,8 +1109,9 @@ class View {
if ($results) {
foreach ($results as $result) {
$internalPath = $result['path'];
$result['path'] = $relativeMountPoint . $result['path'];
$files[] = new FileInfo($mountPoint . $result['path'], $storage, $internalPath, $result);
$result['path'] = rtrim($relativeMountPoint . $result['path'], '/');
$path = rtrim($mountPoint . $internalPath, '/');
$files[] = new FileInfo($path, $storage, $internalPath, $result);
}
}
}