1
I am receiving the following error when sending json data via ajax using codeigniter: Disallowed Key Characters. When sending only one object works smoothly, but when sending more of an object returns the error to me.
jQuery.post( "http://localhost/endereco",
{informacao1:"dado1", informacao2:"dado2"},
function(data){
alert(data);
}
);
But this method no longer exists within the system/core/input.php file?
– Away
Even so I created and it didn’t work.
– Away
Yes, but there is a small change. I was having this same problem and what solved me was this. Try to take a look at this link. https://ellislab.com/forums/viewthread/140333/#854563
– Marcelo Diniz
The link helped me. I didn’t even have to create the file. I just changed the _clean_input_keys method of the system/core/input.php file the way you wrote it. Thank you.
– Away
But it is not advised to change anything from
system
and create the file in your directoryapplication/[core|libraries]
and with that, if one day, a new version comes out, you will only need to change the system folder without major problems.– Marcelo Diniz