I'm not sure I'd ever install a CGI script that took an unrestricted directory name from a parameter! Danger, Will Robinson!my $dir = $q->param('imageDir') ? $q->param('imageDir') : '\images'; # or some other default. die "Illegal directory name '$dir'" unless -d $dir; chdir( $dir ) or die "Couldn't cd to '$dir', $!";
-- Randal L. Schwartz, Perl hacker
In reply to RE: RE: Re: directory list
by merlyn
in thread directory list
by jmac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |