How do I stop CodeIgniter adding semicolons ; to data sent via POST that contains ampersand &?
For example it is converting “a=1&b=2&c=3” into “a=1&b;=2&c;=3”. From looking on the forums it seems to be XSS filtering, which I don’t want to disable site-wide only for 1 controller, so I tried the code below but it’s still doing it:
$this->config->set_item('global_xss_filtering',false);
I’m not using XSS filtering, since it still have bug in it. For example, you will not be able to post a form that have youtube embed code in it when XSS filtering is on. I only use the filter per field that I want it to sanitized.
If your form is working with XSS filtering turned off, then turned it off. If you need to sanitize it against XSS attack, maybe consider another library, such as HTML purifier.