I am building a web app based on Adobe CQ 5.6.1. I have a need to use SlingHttpServletRequest.getRequestParameters(..), I also want that when i call this method i should get modified request parameters which are XSS cleaned
Now to ensure that this method returns the XSS clean data, I thought of writing a filter class which does not work as I tried to override the getRequestParameter, getRequestParameters methods. However I am unable to do as the return type is RequestParameter (or array of them). In case of HttpServletRequest, the return is String so I could return the modified String.
- How can I modify Sling request parameters?
- I was thinking that Sling request parameters are based on httpservletrequest.getParameter. Is this correct?
Please suggest.