diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-20 12:34:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 12:34:23 +0000 |
commit | caebdc2a559f995ff5672cdea7c46a5febaa1ea5 (patch) | |
tree | a886bfdf3f862f8fa14064ec94272132b7d9a5f4 /lib/private/Files | |
parent | f33305aa38cb748201263f20248a09e975946257 (diff) | |
parent | 468d6a9cf1e18e70532dd7d37077d21700d50a83 (diff) | |
download | nextcloud-server-caebdc2a559f995ff5672cdea7c46a5febaa1ea5.tar.gz nextcloud-server-caebdc2a559f995ff5672cdea7c46a5febaa1ea5.zip |
Merge pull request #32024 from nextcloud/local-metadata-forbidden
ignore forbidden files while scanning local storage
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Storage/Local.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index 34ab9a5fc97..d637b3d194f 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -173,7 +173,11 @@ class Local extends \OC\Files\Storage\Common { * @inheritdoc */ public function getMetaData($path) { - $stat = $this->stat($path); + try { + $stat = $this->stat($path); + } catch (ForbiddenException $e) { + return null; + } if (!$stat) { return null; } |