3

Possible Duplicate:
CodeIgniter Disallowed Key Characters

I'm using CodeIgniter and when I do a POST of a <textarea> using an AJAX call through jQuery, I get a Disallowed Key Characters error and I don't know why. Is there a solution to this?

Community
  • 1
  • 1
  • This link might help you. http://stackoverflow.com/questions/4197976/codeigniter-disallowed-key-characters – Arun Jain Jul 24 '12 at 04:25

1 Answers1

1

I ran into this problem with CodeIgniter and found a solution here: http://codeigniter.com/forums/viewthread/140333/. It involves either making changes to system/libraries/Input.php in CodeIgniter or removing characters forbidden by the regular expression.

These lines are where the error message originates:

if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
    exit('Disallowed Key Characters.');
}  
Kenny Linsky
  • 1,726
  • 3
  • 17
  • 41
João Mosmann
  • 2,884
  • 19
  • 25