Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix one URL escape too much in RSS link

Cette révision appartient à :
sfan5 2017-05-12 12:08:38 +02:00
Parent 6b341c7b03
révision 629dfde937

Voir le fichier

@ -19,10 +19,10 @@ var FuncMap = template.FuncMap{
}
return "error"
},
"genRouteWithQuery": func(name string, currentUrl *url.URL, params ...string) template.HTML {
"genRouteWithQuery": func(name string, currentUrl *url.URL, params ...string) template.URL {
url, err := Router.Get(name).URL(params...)
if err == nil {
return template.HTML(template.HTMLEscapeString(url.String() + "?" + currentUrl.RawQuery)) // TODO: Review application of character escaping
return template.URL(url.String() + "?" + currentUrl.RawQuery)
}
return "error"
},