Welcome Guest, Not a member yet? Register   Sign In
is xss_clean still a good practice to validate form
#1

Hello,

I'm using CodeIgniter 3.1.11, and in order to validate a form against xss, I use something like that:

$this->form_validation->set_rules('first_name', 'First Name', 'trim|required|xss_clean');

in the autoload.php, I load the security helper:

$autoload['helper'] = array('url', 'form', 'security');

I checked on the doc online, but I didn't see the xss_clean in the form_validation section:
https://codeigniter.com/user_guide/libra...ation.html

I found some solutions online that using this practice: xss_clean but the solutions are pretty old, from 2015...
I said maybe this option is deprecated,

Thank You for help
Reply


Messages In This Thread
is xss_clean still a good practice to validate form - by Halim - 10-31-2019, 11:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB