Remove extra chars from <base> check error
This commit is contained in:
parent
a429e1c71c
commit
3638ecacfd
@ -121,7 +121,7 @@ func replaceBaseHrefPlaceholder(buf []byte, app, baseHref string) []byte {
|
|||||||
var (
|
var (
|
||||||
base = strings.TrimSuffix(options.CleanBase(baseHref, app), "/") + "/"
|
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))
|
replacement = []byte(fmt.Sprintf(`<base href="%s" />`, base))
|
||||||
fixed = baseHrefMatcher.ReplaceAll(buf, replacement)
|
fixed = baseHrefMatcher.ReplaceAll(buf, replacement)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user