🐛 fix 189 upload while filename contains &

This commit is contained in:
Xhofe
2022-02-12 13:08:46 +08:00
parent 5dca777caf
commit 387e8af422
4 changed files with 19 additions and 5 deletions

View File

@ -115,7 +115,7 @@ func EncodeParam(v url.Values) string {
}
buf.WriteString(k)
buf.WriteByte('=')
buf.WriteString(v)
buf.WriteString(strings.ReplaceAll(v, "&", "%26"))
}
}
return buf.String()