mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Make sure external URLs are not encoded incorrectly by Go template engine
This commit is contained in:
parent
ac3c936820
commit
4d9956cf65
7 changed files with 23 additions and 20 deletions
|
@ -48,6 +48,9 @@ func (f *funcMap) Map() template.FuncMap {
|
|||
"route": func(name string, args ...interface{}) string {
|
||||
return route.Path(f.router, name, args...)
|
||||
},
|
||||
"safeURL": func(url string) template.URL {
|
||||
return template.URL(url)
|
||||
},
|
||||
"noescape": func(str string) template.HTML {
|
||||
return template.HTML(str)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue