Use the correct path when building the FileInfo for the search result

remotes/origin/fix-10825
Robin Appelman 12 years ago
parent 9ee1c7ff71
commit c3991ae13e
  1. 3
      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);
}
}

Loading…
Cancel
Save