Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

xss clean issue

$
0
0
hello
CI 3.1.5
i have an issue with a form validation +xss_clean,
input string is : route val de soane

$this->form_validation
->set_rules('adresse', 'Adresse', 'required|xss_clean|trim|max_length[255]')...

print_r($_POST['adresse1'])
>route val de soane

print_r($this->input->post('adresse1'))
>routeval de soane

the xss_clean feature remove the space beetwen route & val

any way to avoid this?

sytem/core/Security.php line 448 if i remove 'eval' from the $words array no probleme

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>