mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Remove invalid CSRF HTML meta tag
This commit is contained in:
parent
1fd4c4ef13
commit
09be3d2bac
3 changed files with 7 additions and 10 deletions
|
@ -75,7 +75,7 @@ func (f *funcMap) Map() template.FuncMap {
|
|||
"contains": func(str, substr string) bool {
|
||||
return strings.Contains(str, substr)
|
||||
},
|
||||
"replace": func(str, old string, new string) string {
|
||||
"replace": func(str, old, new string) string {
|
||||
return strings.Replace(str, old, new, 1)
|
||||
},
|
||||
"isodate": func(ts time.Time) string {
|
||||
|
@ -86,7 +86,7 @@ func (f *funcMap) Map() template.FuncMap {
|
|||
},
|
||||
"icon": func(iconName string) template.HTML {
|
||||
return template.HTML(fmt.Sprintf(
|
||||
`<svg class="icon" aria-hidden="true"><use xlink:href="%s#icon-%s"></svg>`,
|
||||
`<svg class="icon" aria-hidden="true"><use xlink:href="%s#icon-%s"/></svg>`,
|
||||
route.Path(f.router, "appIcon", "filename", "sprite.svg"),
|
||||
iconName,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue