Re: Bajar ficheros del Servidor

From: Date: Fri, 28 Mar 2003 13:01:10 +0000
Subject: Re: Bajar ficheros del Servidor
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-34406@lists.php.net to get a copy of this message
Hola! te diría, y mas ahora que es público (aunque todavía nos falta saber dónde), que le agregues algo de seguridad :) pensá que si $f = "..\..\archivo sensible.algo", podés tener problemas :) saludos! > Download php contiene lo siguiente: > > -------------------------------- > <? > > $f = $_REQUEST["f"]; > > header("Content-Type: application/x-msdownload\n"); > header("Content-Disposition: attachment; > filename=".basename($f).";\n"); // For Other browsers > > @readfile("docs/".$f); > > ?> -- Andres Ferrando <anferr@mecon.gov.ar>

« previous php.general.es (#34406) next »