dvwright / xss-mw

XssMw is an middleware designed to "auto remove XSS" from user submitted input, it’s written in Go and targets the Gin web framework.
MIT License
33 stars 12 forks source link

bugfix: query array changed after HandleGETRequest #11

Open haborhuang opened 4 years ago

haborhuang commented 4 years ago

Query array like "k1[]=1&k1[]=2" cannot be returned by gin.Context.QueryArray after this middleware. So I replace the 'Set' method.

dvwright commented 3 years ago

Hi @haborhuang Thanks for the PR. Looks good. I'll get my env set up and play with it a bit, then get it merged in. Apologies for the late reply