mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +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
|
@ -30,7 +30,7 @@ func (c *Controller) ImageProxy(ctx *core.Context, request *core.Request, respon
|
|||
return
|
||||
}
|
||||
|
||||
decodedURL, err := base64.StdEncoding.DecodeString(encodedURL)
|
||||
decodedURL, err := base64.URLEncoding.DecodeString(encodedURL)
|
||||
if err != nil {
|
||||
response.HTML().BadRequest(errors.New("Unable to decode this URL"))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue