Für alle:
Das blockt jetzt alles was ../ vorne hat.
PHP-Code:
<?
if(preg_match("#\\.\\.#",$HTTP_GET_VARS[site]) || substr($HTTP_GET_VARS[site],1,1)=="/")
{
$site = "content/home.php";
}
if($site == "")
{
$site = "content/home.php";
}
include("$site");
?>
Kommentar