Welcome Guest, Not a member yet? Register   Sign In
XSS Clean in CI4?
#5

(01-28-2020, 12:32 PM)jreklund Wrote: Input are in your controller*. Output are in your view.

*setVar are called in your controller.

Sorry me, but let me ask showing an example:

In CI3 I clean the post with this method:
$post = $this->security->xss_clean($this->input->post(NULL, TRUE));

This means that all post received by the controller will pass by xss_clean. How I can do something like this on CI4?
Reply


Messages In This Thread
XSS Clean in CI4? - by ajmeireles - 01-28-2020, 12:00 AM
RE: XSS Clean in CI4? - by jreklund - 01-28-2020, 12:55 AM
RE: XSS Clean in CI4? - by ajmeireles - 01-28-2020, 12:18 PM
RE: XSS Clean in CI4? - by jreklund - 01-28-2020, 12:32 PM
RE: XSS Clean in CI4? - by ajmeireles - 01-28-2020, 01:05 PM
RE: XSS Clean in CI4? - by dave friend - 01-31-2020, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB