Forum Moderators: coopster
$name = $_GET['name'];
$id = $_GET['id'];
$banned = array("../","./","..\\",".\\");
foreach($banned as $str){
if(strpos($id, $str!== false) ¦¦ strpos($name, $str!== false)){
die("sod off hacking #*$!");
}else{
$url = "../../images/tmp/$id/$name";
etc
etc
}
}