Hi,

Can anyone explain to me why I would get a perl error in one web browser but
not in any others?

All I¹m doing is taking an email address from a form, feeding it to a
validation sub that untaints it, then using it with the ­f option to
sendmail. It works fine in Mozilla browsers on both Mac and PC, as well as
in Safari on the Mac, but Internet Explorer on either platform gives
³Insecure dependency in piped open while running with -T switch² at the line
where I open a pipe to sendmail.

...
my $user_email = validate_email_address( param( "Email" ) );
...
open MAIL, "| /usr/lib/sendmail -t -i  -f '$user_email' " or die "Could not
open sendmail: $!";


The validate_email_address sub comes straight from ³CGI Programming with
Perl² chapter 9. It¹s too long to include here but its final line is

return $addr_to_check =~ /^$address$/ox ? $addr_to_check : "";


Any ideas on why this might be happening would be greatly appreciated.

Best,

Erik Rieselbach

Reply via email to