Welcome Guest, Not a member yet? Register   Sign In
Does xss_clean destroy emails?
#1

[eluser]sorenchr[/eluser]
Hi!

Using the form-validation library, I've set up af couple of rules for email inputs:
Code:
$this->form_validation->set_rules('login-email', 'Email', 'trim|required|max_length[255]|valid_email');

Is it necessary to xss_clean it also? If yes, could this somehow change the email? I wan't it to remain intact for storage in my db
#2

[eluser]Buso[/eluser]
I don't think it's necessary, but if you do it, and it changes, probably it is better losing the email than keeping it Smile




Theme © iAndrew 2016 - Forum software by © MyBB