Pepi wrote:
>
> Greetings,
>
> Does anyone now what that server error suggests:
>
> Insecure $ENV{PATH} while running with -T switch at
> /home/web/perl/contact.pl line 46.
>
> Close to this line in this source file I have:
>
> open (SENDMAIL, "| /usr/sbin/sendmail -oi -t")
> or unexpected("contact.pl: Can't open sendmail process: $!\n");
>
> print SENDMAIL "To:support\@findmax.com\n";
> print SENDMAIL "From:".$input{'email'}."\n";
> print SENDMAIL "Subject: [contact form]".$input{'subject'}."\n\n";
> print SENDMAIL $input{'message'}."\n";
>
> close (SENDMAIL)
> or intecept("contact.pl: Sendmail did not finish w/ success: $!");
>
A similar odd taint problem (still unresolved) came up for someone
using Apache::ASP. You might have "PerlTaintCheck On" set
somewhere in an apache configuration file, or you might have
something like a precompiled RedHat distribution where they
were kind enough (sarcasm) to auto-enable taint check, and you
will have to explicitly turn it off with "PerlTaintCheck Off".
I don't know the "real" answer to your problem, as I don't see
$ENV{PATH} being referenced anywhere in your above code.
If you do have a RedHat mod_perl RPM, and get other odd errors
in the future, you might consider compiling mod_perl and Apache
yourself, as it seems to be the general cure for these problems.
-- Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NODEWORKS >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-562-683-2142