Welcome Guest, Not a member yet? Register   Sign In
$this->input->post($data, TRUE) vs ...xss_clean($data)
#1

[eluser]veledrom[/eluser]
Hi,

I just wonder if there is any difference between codes below because, if them two do the same work then there is no point for me to use both at same time. Am I right?

Thanks

Code:
$this->input->post($data, TRUE);
Code:
$this->security->xss_clean($data);
#2

[eluser]Eric Barnes[/eluser]
Yes they do the same. So if you are reading post data use the first.
#3

[eluser]veledrom[/eluser]
Thank you.




Theme © iAndrew 2016 - Forum software by © MyBB