if i remove all the special characters from a string than is there any chance of sql injection??(i don't need any special characters in my input)
i am using following code to remove all special characters
$unsafe = $_GET["tag"];
$safe = preg_replace('/[^a-zA-Z0-9 ]/s', '', $unsafe);
$safe = mysql_real_escape_string($safe);
is there still any chances of having sql injection??