Skip to content

Commit

Permalink
fix taint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Mar 15, 2014
1 parent a0ce932 commit 26e2515
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Module/Metadata/ExtractVersion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ sub eval_version
print {$temp} _pl_template( $string, $sigil, $var );
close $temp;

# detaint...
undef $ENV{PATH};
my $perl = $^X;
$perl = $1 if $perl =~ m{^(.+)}s;

my $rc;
my $result;
my $err = gensym;
my $pid = open3(my $in, my $out, $err, $^X, $temp);
my $pid = open3(my $in, my $out, $err, $perl, $temp);
my $killer;
if ($^O eq 'MSWin32') {
$killer = fork;
Expand Down

0 comments on commit 26e2515

Please sign in to comment.