mirror of https://github.com/gophish/gophish
Bugfix Issue 1570 (#1640)
Relating to the Issue (https://github.com/gophish/gophish/issues/1570), this could be an easy fix.pull/1654/head
parent
28252bcb56
commit
c5dc71662a
|
@ -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
|
// 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
|
// 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.Path = ""
|
||||||
baseURL.RawQuery = ""
|
baseURL.RawQuery = ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue