I have a input with name="exam[A+]". I have figured out that when I called $this->input->post("exam")
it is giving me an error called "Disallowed Key Characters". I want to add + sign in my key characters. Here is the code in the system file.
function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
// Clean UTF-8 if supported
if (UTF8_ENABLED === TRUE)
{
$str = $this->uni->clean_string($str);
}
return $str;
}
How do I change the regular expression to add the + sign in the input. I hope I have made my question clear. If there is still some confusion please notify me. I will edit the question again. Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire