From 56a66c45cec40f398292fc9966bf9c71bc73b4a5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 27 May 2020 15:30:19 +0200 Subject: [PATCH] handle empty names in isHidden Signed-off-by: Robin Appelman --- .../3rdparty/icewind/smb/src/Native/NativeFileInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php b/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php index 093cbb3b5d..5b987253ad 100644 --- a/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php +++ b/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php @@ -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); }