diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-20 13:01:16 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-20 13:01:16 +0200 |
commit | 468d6a9cf1e18e70532dd7d37077d21700d50a83 (patch) | |
tree | 421a105df849cb0843facc81f0270a4f1b71a0eb /lib/private | |
parent | 58f5de08dfe7796e61754adf7f618ea6d48ef343 (diff) | |
download | nextcloud-server-468d6a9cf1e18e70532dd7d37077d21700d50a83.tar.gz nextcloud-server-468d6a9cf1e18e70532dd7d37077d21700d50a83.zip |
ignore forbidden files while scanning local storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private')
-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; } |