Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] I've workarounded my problem by moving the line $ENV{PATH} = '/bin:/usr/bin:/usr/lib'; from the BEGIN block into the handler sub, right before I call my $sendmail = Mail::Mailer->new(); $sendmail->open(); So it looks to me, that it's a

RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
I've also tried removing Apache::StatINC from everywhere in the httpd.conf: #PerlModule Apache::StatINC PerlModule Testcase SetHandler perl-script PerlHandler Testcase #PerlInitHandler Apache::StatINC #PerlSetVar StatINCDebug On and still get the same error: [Fri Apr 30 19:35:36 2

RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
Hi Stas, sorry for not replying - too much pressure at work and I have to finish my mod_perl-script (a Continuus trigger) tonight. I don't have time to install Apache::Reload, but I've tried to create a test case for you - running: package Testcase; BEGIN { delete @ENV{qw(IFS CDPATH

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi Stas, thanks for your reply. I've forgotten to mention it, but I have already tried BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; $ENV{PATH} = '/bin:/usr/bin'; } Alex, please show me a complete minimal test case. You might be able to reproduce

RE: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-30 Thread Alexander.Farber
Hi Stas, thanks for your reply. I've forgotten to mention it, but I have already tried BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; $ENV{PATH} = '/bin:/usr/bin'; } And also the values '' and '/' for $ENV{PATH}. Unfortunately the error message when I'm sending mail with

Re: Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi, on the top of my mod_perl 1 script I have: package Taskit; BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; } use Apache; use Apache::Constants qw(OK); use Apache::Request; use Net::LDAP; use M

Insecure $ENV{PATH} while running with -T at Mail/Mailer/sendmail.pm

2004-04-29 Thread Alexander.Farber
Hi, on the top of my mod_perl 1 script I have: package Taskit; BEGIN { delete @ENV{qw(PATH IFS CDPATH ENV BASH_ENV)}; } use Apache; use Apache::Constants qw(OK); use Apache::Request; use Net::LDAP; use Mail::Mailer qw(se