High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Sanitize config paths
Kailash Nadhde4e848e6dc7
diff --git a/main.go b/main.goindex 49a9bde5..f13d0542 100644--- a/main.go+++ b/main.go@@ -6,6 +6,7 @@ import ("log""os""path/filepath"+ "strings""time"_ "github.com/jinzhu/gorm/dialects/postgres"@@ -190,7 +191,9 @@ func main() {var c constantsviper.UnmarshalKey("app", &c)- c.AssetPath = filepath.Clean(viper.GetString("app.asset_path"))+ c.RootURL = strings.TrimRight(c.RootURL, "/")+ c.UploadURI = filepath.Clean(c.UploadURI)+ c.AssetPath = filepath.Clean(c.AssetPath)// Initialize the app context that's passed around.app := &App{