hi i just reinstalled all my server for a virus. in my php o ckeck string from users with this function:
function make_safe($variable)
{
$variable=nl2br($variable);
$variable=mysql_real_escape_string(trim(strip_tags($variable, '<span><p><b><strong><i><u><br><hr><a><img>')));
return $variable;
}
is this function safe enuoght? should i have to change something... any problems with images that i link form external websites?