Bugfix Issue 1570 (#1640)

Relating to the Issue (https://github.com/gophish/gophish/issues/1570), this could be an easy fix.
pull/1654/head
SamSutt 2019-10-29 14:21:54 +01:00 committed by Jordan Wright
parent 28252bcb56
commit c5dc71662a
1 changed files with 4 additions and 1 deletions

View File

@ -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 = ""