sql injection
How to clean a variable against xss and sql injections attack
By liviu - Posted on December 8th, 2008
Tagged:
How to clean a variable against xss and sql injections attack?
This should be quite efective:
$var=mysql_real_escape_string(trim(htmlspecialchars(strip_tags($_GET['var']))));
- liviu's blog
- Login or register to post comments