feat: encode path of url (close #1351)
This commit is contained in:
@ -248,7 +248,7 @@ func Link(c *gin.Context) {
|
||||
common.SuccessResp(c, model.Link{
|
||||
URL: fmt.Sprintf("%s/p%s?d&sign=%s",
|
||||
common.GetApiUrl(c.Request),
|
||||
utils.EncodePath(req.Path),
|
||||
utils.EncodePath(req.Path, true),
|
||||
sign.Sign(stdpath.Base(rawPath))),
|
||||
})
|
||||
return
|
||||
|
Reference in New Issue
Block a user