Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

docmd.close 2585, WWWXXXAPC, WWWXXXDOCO, nu vot, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text, how to setup procmail html2text, WWWXXXAPC., XXXCNZZZ

Links

XODOX
Impressum

#1: CGI perl with -T

Posted on 2007-08-24 02:48:32 by George

Help...
I am trying to use sendmail in a CGI script. When I use the OPEN command
(open sMail, "| /usr/lib/sendmail -oi -t -odq";)
I get the error (Insecure $ENV{PATH} while running with -T switch)
I don't want to disable the -T switch but I need to be able to call
sendmail.

Any Ideas?

Thanks

Report this message

#2: Re: CGI perl with -T

Posted on 2007-08-24 02:58:14 by Gunnar Hjalmarsson

George wrote:
> I am trying to use sendmail in a CGI script. When I use the OPEN command
> (open sMail, "| /usr/lib/sendmail -oi -t -odq";)
> I get the error (Insecure $ENV{PATH} while running with -T switch)
> I don't want to disable the -T switch but I need to be able to call
> sendmail.

Set $ENV{PATH} explicitly.

$ENV{PATH} = '';

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Report this message

#3: Re: CGI perl with -T

Posted on 2007-08-24 03:15:14 by George

Gunnar Hjalmarsson wrote:
> George wrote:
>> I am trying to use sendmail in a CGI script. When I use the OPEN
>> command (open sMail, "| /usr/lib/sendmail -oi -t -odq";)
>> I get the error (Insecure $ENV{PATH} while running with -T switch)
>> I don't want to disable the -T switch but I need to be able to call
>> sendmail.
>
> Set $ENV{PATH} explicitly.
>
> $ENV{PATH} = '';
>
Perfect!, That worked well.

Thanks

Report this message