I just want to write out form input to a text file. So, after I've got the form input parsed I have this line:
open (FH, ">>$tfile");
Which generates this error:
Insecure dependency in open while running setgid at postcomments.pl line 19.
Thanks for any and all thoughts.
Here's more of the script:
#!/usr/local/bin/perl
require TripodCGI;
$CGI= new TripodCGI;
$tfile=$CGI->param('comment_text');
$hfile=$CGI->param('comment_html');
$name=$CGI->param('uname');
$email=$CGI->param('email');
$rating=$CGI->param('rating');
$comments=$CGI->param('comment_area');
open (FH, ">>$tfile");
flock(FH,2);
seek(FH,0,2);
print FH qq!
<tr><td><img src="invisible.gif" width="15" height="1"></td>
<td align="right"><img src="ktcl1l.gif" width="73" height="47" border="0"></td>
<td>$name<br>$email<br>$rating<br>$comments<br><center><img src="ktln1f.gif" width="474" height="89" border="0"><br></td></tr>!;
close(FH);
$CGI->redirect('$hfile');
exit;
open (FH, ">>$tfile");
Which generates this error:
Insecure dependency in open while running setgid at postcomments.pl line 19.
Thanks for any and all thoughts.
Here's more of the script:
#!/usr/local/bin/perl
require TripodCGI;
$CGI= new TripodCGI;
$tfile=$CGI->param('comment_text');
$hfile=$CGI->param('comment_html');
$name=$CGI->param('uname');
$email=$CGI->param('email');
$rating=$CGI->param('rating');
$comments=$CGI->param('comment_area');
open (FH, ">>$tfile");
flock(FH,2);
seek(FH,0,2);
print FH qq!
<tr><td><img src="invisible.gif" width="15" height="1"></td>
<td align="right"><img src="ktcl1l.gif" width="73" height="47" border="0"></td>
<td>$name<br>$email<br>$rating<br>$comments<br><center><img src="ktln1f.gif" width="474" height="89" border="0"><br></td></tr>!;
close(FH);
$CGI->redirect('$hfile');
exit;