Depending on your mail setup, you might want to simply skip that part that invokes the sendmail executable and use a direct SMTP connection:
return $mail->send('smtp');
In your code you don't show how you set $ENV{PATH} to a fixed value - I would start with that...
In reply to Re: Insecure CPAN module in taint mode
by Corion
in thread Insecure CPAN module in taint mode
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |