10-31-2019, 11:21 AM
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
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