From 22cdd821311a59c339de259ca086e0426177617d Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Tue, 20 Jun 2023 19:05:55 +0200 Subject: [PATCH] check 'path' for 'empty' as well (#4785) (#4787) Co-authored-by: Scott Bishel --- server/app/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/files.go b/server/app/files.go index 1474a291a..7be88ee33 100644 --- a/server/app/files.go +++ b/server/app/files.go @@ -97,7 +97,7 @@ func (a *App) GetFile(teamID, rootID, fileName string) (*mmModel.FileInfo, files var filePath string - if fileInfo != nil && fileInfo.Path != "" { + if fileInfo != nil && fileInfo.Path != "" && fileInfo.Path != emptyString { filePath = fileInfo.Path } else { filePath = filepath.Join(teamID, rootID, fileName)