Skip to content

Commit

Permalink
Fix another broken open call
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Aug 20, 2016
1 parent 453a996 commit 559d4f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ close($TEMP);
my $cmd = &command_as_user($cgiuser, 0, "$mailman_dir/cgi-bin/$prog");
my $textarea = 0;
my ($headers, $body);
open(my $CGI, "<", "$cmd <$temp |");
while(<CGI>) {
open(my $CGI, "$cmd <$temp |");
while(<$CGI>) {
# Check if we are in a textarea
if (/<textarea/i) { $textarea = 1; }
if (/<\/textarea/i) { $textarea = 0; }
Expand Down Expand Up @@ -117,7 +117,7 @@ while(<CGI>) {
$body .= $_;
}
}
close(CGI);
close($CGI);

print $headers;
my $title;
Expand Down

0 comments on commit 559d4f4

Please sign in to comment.