Skip to content

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

fixed bug: when no safety path is set, is still check safety path visit status.

Jackcf0a91b427ad
diff --git a/core/internal/cmd/cmd.go b/core/internal/cmd/cmd.go
index 8e5a4c33..c25a8f66 100644
--- a/core/internal/cmd/cmd.go
+++ b/core/internal/cmd/cmd.go
@@ -199,7 +199,7 @@ var (
return
}
- if !r.Session.MustGet("safe_path_pass", false).Bool() {
+ if safepath != "" && !r.Session.MustGet("safe_path_pass", false).Bool() {
r.Response.WriteHeader(404)
return
}