mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #49291 from nextcloud/encoding-wrapper-metadata
fix: don't set 'name' on null metadata
This commit is contained in:
commit
0729e264f5
1 changed files with 3 additions and 1 deletions
|
|
@ -280,7 +280,9 @@ class Encoding extends Wrapper {
|
|||
|
||||
public function getMetaData(string $path): ?array {
|
||||
$entry = $this->storage->getMetaData($this->findPathToUse($path));
|
||||
$entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/');
|
||||
if ($entry !== null) {
|
||||
$entry['name'] = trim(Filesystem::normalizePath($entry['name']), '/');
|
||||
}
|
||||
return $entry;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue