»
S
I
D
E
B
A
R
«
CodeIgniter adding semicolons
November 10th, 2009 by wood

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);

One Response  
  • michaeljdennis writes:
    November 10th, 2009 at 1:46 pm

    You can always do a str_replace(’;', ”, $string).


Leave a Reply

»  Substance: PHP Frameworks   »  SiteMap