Skip to content

Commit

Permalink
Merge pull request #49291 from nextcloud/encoding-wrapper-metadata
Browse files Browse the repository at this point in the history
fix: don't set 'name' on null metadata
  • Loading branch information
come-nc authored Dec 3, 2024
2 parents 5ee4c9e + ae30269 commit 0729e26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/Storage/Wrapper/Encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public function moveFromStorage(IStorage $sourceStorage, string $sourceInternalP

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;
}

Expand Down

0 comments on commit 0729e26

Please sign in to comment.