From: Michal Vaner Date: Tue, 7 Oct 2008 19:41:28 +0000 (+0200) Subject: Safe path X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d5d787d8c20b18caa6eb7b67e66ba23a40fe4aad;p=pciids.git Safe path --- 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".