in reply to Insecure dependency in open while running with -T switch
if ( $outfile =~ m{\A(\w+)\z} ) { $outfile = $1; open my $outFH, q{>}, $outfile or dir qq{open: $outfile: $!\n}; } else { die qq{Disallowed characters in filename\n}; }
I hope this is helpful.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Insecure dependency in open while running with -T switch
by ikegami (Patriarch) on Jan 19, 2008 at 00:27 UTC |