but I would not trust the user - make sure you untaint that file name first.use strict; use CGI; my $CGI = new CGI; if (my $file = $CGI->param('file')) { print $CGI->redirect('http://localhost/'.$file); } else { print $CGI->header; print "stuff"; }
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
In reply to (jeffa) Re: Specifying filename for download
by jeffa
in thread Specifying filename for download
by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |