From b44243c02138c807caeb2b6f8ac864cc20dbeb9e Mon Sep 17 00:00:00 2001 From: Xhofe Date: Sat, 5 Mar 2022 15:13:19 +0800 Subject: [PATCH] feat: ipa name decode --- server/controllers/other.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/controllers/other.go b/server/controllers/other.go index 79e36840f04..34c83be2ead 100644 --- a/server/controllers/other.go +++ b/server/controllers/other.go @@ -35,6 +35,10 @@ func Plist(c *gin.Context) { ipaIndex := strings.Index(name, ".ipa") if ipaIndex != -1 { name = name[:ipaIndex] + decodeName, err := url.PathUnescape(name) + if err == nil { + name = decodeName + } } name = strings.ReplaceAll(name, "<", "[") name = strings.ReplaceAll(name, ">", "]")