mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Use base64 URL encoding instead of standard encoding
This commit is contained in:
parent
99dc590e45
commit
ce75748cf2
2 changed files with 3 additions and 2 deletions
|
@ -36,5 +36,6 @@ func ImageProxyFilter(router *mux.Router, data string) string {
|
|||
|
||||
// Proxify returns a proxified link.
|
||||
func Proxify(router *mux.Router, link string) string {
|
||||
return route.Path(router, "proxy", "encodedURL", base64.StdEncoding.EncodeToString([]byte(link)))
|
||||
// We use base64 url encoding to avoid slash in the URL.
|
||||
return route.Path(router, "proxy", "encodedURL", base64.URLEncoding.EncodeToString([]byte(link)))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue