Revision: 88780
Updated Title
Updated URL
Updated Code
Updated Description
at March 29, 2022 15:37 by llbbl
Updated Title
Very old and bad way to do Anti-SQL Injection Function
Updated URL
Updated Code
function cleanuserinput($dirty){ if (get_magic_quotes_gpc()) { $clean = mysql_real_escape_string(stripslashes($dirty)); }else{ $clean = mysql_real_escape_string($dirty); } return $clean; }
Updated Description
Don't do it this way. This was written so long ago.
Revision: 3051
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 27, 2007 11:53 by llbbl
Initial Code
function 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
Anti-SQL Injection Function
Initial Tags
mysql, php, textmate, security
Initial Language
PHP