Return to Snippet

Revision: 3793
at September 13, 2007 16:11 by lmcdougall


Initial Code
unction cleanuserinput($dirty){
	if (get_magic_quotes_gpc()) {
		$clean = mysql_real_escape_string(stripslashes($dirty));	 
	}else{
		$clean = mysql_real_escape_string($dirty);	
	} 
	return $clean;
}

Initial URL

                                

Initial Description

                                

Initial Title
Simple php mysql injection detect

Initial Tags
mysql, php, textmate

Initial Language
Other