mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #32027 from nextcloud/backport/32024/stable24
[stable24] ignore forbidden files while scanning local storage
This commit is contained in:
commit
b9bfd5aba8
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue