Skip to content

Commit

Permalink
Merge pull request #43652 from hopleus/bugfix/fixed-get-filename-in-f…
Browse files Browse the repository at this point in the history
…ileinfo
  • Loading branch information
skjnldsv authored Mar 14, 2024
2 parents 4cf392f + a25c70c commit f316edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/FileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ public function getMimePart() {
* @return string
*/
public function getName() {
return isset($this->data['name']) ? $this->data['name'] : basename($this->getPath());
return empty($this->data['name'])
? basename($this->getPath())
: $this->data['name'];
}

/**
Expand Down

0 comments on commit f316edb

Please sign in to comment.