0

I'm having this error "Disallowed Key Characters." I have try to resolve this, by debugging input.php file. I have this output as

Disallowed Key Characters.2548_don't

can anyone tell me, how to escape single quote

Thanks

forbidden
  • 71
  • 1
  • 1
  • 6

2 Answers2

0

Try This

Go to application -> config -> config.php

And try to find

$config['permitted_uri_chars']

change it to

$config['permitted_uri_chars'] = '\#';

this # will allow all the characters.

vikujangid
  • 728
  • 3
  • 8
  • 19
0
if ( ! preg_match("/^[a-z0-9':_\/-]+$/i", $str))
     {
        exit('Disallowed Key Characters.'.$str);
     }

added single quote in preg match and it is working now

Thanks

forbidden
  • 71
  • 1
  • 1
  • 6
  • The occurs if the input field _name_ has characters, that are not supported/allowed in the `preg_match`. – Vaishak Dec 16 '15 at 06:10