Problem:
How to prevent XSS Cross Site Scripting in CodeIgniterSolution:
use $this->security->xss_clean($input_data); methodOR
set $config['global_xss_filtering']=TRUE;
Example:
$input_data = $this->security->xss_clean($input_data);or add this line in config.php file
$config['global_xss_filtering'] = TRUE;
0 comments:
Post a Comment