Welcome Guest, Not a member yet? Register   Sign In
form prepping
#1

[eluser]eljunior[/eluser]
hi, there!

i am wondering how is different form_prep() and $this->validation->prep_for_form().

beyond the fact that one is a helper and another a method of a library, and prep_for_form
also accepts an array as parameter...

i mean, how different they behave when passed as parameter just a string?
#2

[eluser]Seppo[/eluser]
The form_prep function replaces single quotes, double quotes, less than, greater than and ampersands for their entities.
The prep_for_form method only escapes single quotes, double quotes, less than and greater than, and it strip slashes.

They are more or less the same...
#3

[eluser]eljunior[/eluser]
thank you!
so, should i think form_prep is more "secure" ?




Theme © iAndrew 2016 - Forum software by © MyBB