mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
Merge pull request #17444 from nextcloud/backport/17359/stable17
[stable17] Don't call basename on null
This commit is contained in:
commit
0e2a403a21
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class FileName extends AbstractStringCheck {
|
|||
* @return string
|
||||
*/
|
||||
protected function getActualValue(): string {
|
||||
return basename($this->path);
|
||||
return $this->path === null ? '' : basename($this->path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue