feat: encode path of url (close #1351)

This commit is contained in:
Noah Hsu
2022-08-12 14:51:23 +08:00
parent 0f853c86da
commit 06e15fc149
4 changed files with 4 additions and 4 deletions

View File

@ -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