Welcome Guest, Not a member yet? Register   Sign In
xss filtering difference
#1

[eluser]veledrom[/eluser]
Hi,

1. Do they do same thing in terms of security filtering?
2. Does choosing one over another make any difference or both same?
3. Does running them together add any extra safety or not really?

Note: I read about them in CI GUIDE but just want to clarify.

Thanks

Code:
$fullname = $this->input->post('fullname', true);

$fullname = $this->security->xss_clean($fullname);
#2

[eluser]Aken[/eluser]
You could've answered this yourself by looking at the source code.

There's no difference. If you include the TRUE parameter of $this->input->post(), the value is passed through $this->security->xss_clean().
#3

[eluser]veledrom[/eluser]
Quote:You could’ve answered this yourself by looking at the source code.

You'r right. I thing I didn't think of. Thanks
#4

[eluser]veledrom[/eluser]
Is this going to filter all the data in post in one go?

Code:
$this->security->xss_clean($this->input->post());




Theme © iAndrew 2016 - Forum software by © MyBB