function saveText(str) {
$.post('test1ajax.php', {test1: str},
function(data) {
console.log('result: '+data);
}
);
}
The following inputs to saveText() (which sends the text using POST) give a 403 (Forbidden) result:
"test;INSERT xx" ";updateXx" "; delete12" 'TEST; select12'
So basically it contains a semicolon then a CRUD SQL keyword then at least 2 more characters.
My problem is similar to: AJAX post returns 403 (sometimes)
It seems to be a problem to do with my web host's configuration since it doesn't happen for many other people.
The PHP I'm calling is: var_dump($_POST);