quindi dovrei modificare questa sub?
Codice PHP:
function safeDirectory($path) {
GLOBAL $displayError;
$result = $path;
if (strpos($path,"..")!==false)
$result = "";
if (substr($path,0,1)=="/") {
$result = "";
}
if ($result!=$path) {
$displayError[] = translate("Illegal path specified, ignoring.");
}
return $result;
}