diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-20 14:01:16 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-20 14:01:16 +0300 |
commit | 468d6a9cf1e18e70532dd7d37077d21700d50a83 (patch) | |
tree | 421a105df849cb0843facc81f0270a4f1b71a0eb | |
parent | 58f5de08dfe7796e61754adf7f618ea6d48ef343 (diff) |
ignore forbidden files while scanning local storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
-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; } |