mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-06 11:03:49 +08:00
🚧 change base64 characters
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user