Skip to main content
5 of 5
added 3 characters in body
Asaph
  • 161.7k
  • 25
  • 201
  • 203

Write a simple class that subcalsses HttpServletRequestWrapper with a getParameter() method that returns the sanitized version of the input. Then pass an instance of your HttpServletRequestWrapper to Filter.doChain() instead of the request object directly.

Asaph
  • 161.7k
  • 25
  • 201
  • 203