Compare commits

...

1 Commits

Author SHA1 Message Date
Robin Appelman 56a66c45ce
handle empty names in isHidden
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-05-27 15:30:19 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class NativeFileInfo implements IFileInfo {
public function isHidden() {
$mode = $this->getMode();
if ($mode > 0x80) {
return $this->name[0] === '.';
return strlen($this->name) > 0 && $this->name[0] === '.';
} else {
return (bool)($mode & IFileInfo::MODE_HIDDEN);
}