3
0

Remove extra chars from <base> check error

This commit is contained in:
Denis Arh 2021-06-02 07:02:19 +02:00
parent a429e1c71c
commit 3638ecacfd

View File

@ -121,7 +121,7 @@ func replaceBaseHrefPlaceholder(buf []byte, app, baseHref string) []byte {
var (
base = strings.TrimSuffix(options.CleanBase(baseHref, app), "/") + "/"
warning = []byte(`\n\n<!--\n\nError!\n\nFailed could not locate or modify <base> tag, your webapp might misbehave\n\n-->\n`)
warning = []byte(`<!-- Error! Could not locate or modify <base> tag, your webapp might misbehave -->`)
replacement = []byte(fmt.Sprintf(`<base href="%s" />`, base))
fixed = baseHrefMatcher.ReplaceAll(buf, replacement)
)