From d5d787d8c20b18caa6eb7b67e66ba23a40fe4aad Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Tue, 7 Oct 2008 21:41:28 +0200 Subject: [PATCH] Safe path --- PciIds/Email.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PciIds/Email.pm b/PciIds/Email.pm index 6757886..69daedb 100644 --- a/PciIds/Email.pm +++ b/PciIds/Email.pm @@ -35,6 +35,7 @@ sub sendMail( $$$ ) { ( $error, $to ) = emailCheck( $to, undef ); die "Invalid email in database $to\n" if defined $error; $body =~ s/^\.$/../gm; + $ENV{'PATH'} = '/usr/sbin'; open SENDMAIL, "|$sendmail -f'$from' '$to'" or die 'Can not send mail'; print SENDMAIL "From: $from\n". "To: $to\n". -- 2.39.5