BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Adjusting DownloadFile
lotkf0e1f6f2ef25
diff --git a/core/internal/controller/files/files_v1_download_file.go b/core/internal/controller/files/files_v1_download_file.goindex d155fabe..b82caaca 100644--- a/core/internal/controller/files/files_v1_download_file.go+++ b/core/internal/controller/files/files_v1_download_file.go@@ -14,7 +14,7 @@ import (func (c *ControllerV1) DownloadFile(ctx context.Context, req *v1.DownloadFileReq) (res *v1.DownloadFileRes, err error) {filePath := req.FilePath- if strings.HasPrefix(filePath, "../") {+ if strings.HasPrefix(filePath, "./") {filePath = public.AbsPath(filePath)}if err = c.validateFilePath(filePath); err != nil {