Right now my application is secured against SQL injection and XSS, will add CSRF protection before deployment. I'm not filtering POST request thought and I don't use any GET request.
I was reading this question to see if I missed any security detail and one guy says to use
$username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_STRING);
The problem is my data is from different languages, English, French, Arabic, Russian and I don't know what. I have no idea what the people doing the data entry want to put in the database. I know that there will be data from many different languages.
input filtering and sanitizing won't work with none english characters right?
something
";$username=filter_var($var, FILTER_SANITIZE_STRING);` outputs: `"éèàùßsomething"`. – Syscall Feb 01 '18 at 10:12