xss-mw
xss-mw copied to clipboard
XssMw is an middleware designed to "auto remove XSS" from user submitted input, it’s written in Go and targets the Gin web framework.
 POST json, body is ["11","22"]
Query array like "k1[]=1&k1[]=2" cannot be returned by gin.Context.QueryArray after this middleware. So I replace the 'Set' method.
Hey there , Thank you for providing this middleware , it's a blessing since i don't have to have to manually do it now. I forked it and modified abit...
when request have array ,it is remove array and put only ]
Hello! In the line of code referenced you ask if that section of code is needed. I would say no. https://github.com/dvwright/xss-mw/blob/7a0dab86d8f63202fbeb1023838a538132de1102/xss.go#L376 I am supporting a legacy application which sends data...