mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
fix: reflected XSS vulnerability plist api
This commit is contained in:
parent
34746e951c
commit
6100647310
@ -45,6 +45,8 @@ func Plist(c *gin.Context) {
|
||||
}
|
||||
fullName := c.Param("name")
|
||||
Url := link.String()
|
||||
Url = strings.ReplaceAll(Url, "<", "[")
|
||||
Url = strings.ReplaceAll(Url, ">", "]")
|
||||
nameEncode := linkNameSplit[1]
|
||||
fullName, err = url.PathUnescape(nameEncode)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user