I would like to know if this is reliable. In my PHP file I do the following code:
if(strpos($text,"'") === false) {
//perform query
} else { /*illegal character*/ }
I know I probably sound like an idiot, but what are the flaws in this? Can someone use different character encoding perhaps to get around it and inject a single quote?