Skip to content

Commit

Permalink
feat: ipa name decode
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 5, 2022
1 parent 4ae81b5 commit b44243c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/controllers/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ">", "]")
Expand Down

0 comments on commit b44243c

Please sign in to comment.