Skip to content

Commit

Permalink
Merge pull request nextcloud#32024 from nextcloud/local-metadata-forb…
Browse files Browse the repository at this point in the history
…idden

ignore forbidden files while scanning local storage
  • Loading branch information
icewind1991 authored Apr 20, 2022
2 parents f33305a + 468d6a9 commit caebdc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ public function stat($path) {
* @inheritdoc
*/
public function getMetaData($path) {
$stat = $this->stat($path);
try {
$stat = $this->stat($path);
} catch (ForbiddenException $e) {
return null;
}
if (!$stat) {
return null;
}
Expand Down

0 comments on commit caebdc2

Please sign in to comment.