diff --git a/models/template_context.go b/models/template_context.go index 96e03f3e..a524d304 100644 --- a/models/template_context.go +++ b/models/template_context.go @@ -45,7 +45,10 @@ func NewPhishingTemplateContext(ctx TemplateContext, r BaseRecipient, rid string // For the base URL, we'll reset the the path and the query // This will create a URL in the form of http://example.com - baseURL, _ := url.Parse(templateURL) + baseURL, err:= url.Parse(templateURL) + if err != nil { + return PhishingTemplateContext{}, err + } baseURL.Path = "" baseURL.RawQuery = ""