mirror of https://github.com/gophish/gophish
Moved <base> tag to start of <head> tag. Fixes #42
parent
68b39cf6a3
commit
014efb449e
|
@ -408,7 +408,7 @@ func API_Import_Site(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
// Assuming we don't want to include resources, we'll need a base href
|
||||
if d.Find("head base").Length() == 0 {
|
||||
d.Find("head").AppendHtml(fmt.Sprintf("<base href=\"%s\">", cr.URL))
|
||||
d.Find("head").PrependHtml(fmt.Sprintf("<base href=\"%s\">", cr.URL))
|
||||
}
|
||||
h, err := d.Html()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue