From f11e22deaf822745c82a0476ca4116e58ecc83ac Mon Sep 17 00:00:00 2001 From: Xhofe Date: Thu, 17 Feb 2022 09:14:21 +0800 Subject: [PATCH] :construction: change base64 characters --- server/controllers/other.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/controllers/other.go b/server/controllers/other.go index 623821d7..9117734e 100644 --- a/server/controllers/other.go +++ b/server/controllers/other.go @@ -16,6 +16,8 @@ func Favicon(c *gin.Context) { func Plist(c *gin.Context) { data := c.Param("data") + data = strings.ReplaceAll(data, "_", "/") + data = strings.ReplaceAll(data, "-", "=") bytes, err := base64.StdEncoding.DecodeString(data) if err != nil { common.ErrorResp(c, err, 500)