Commit b41c3767 authored by Robert Ricci's avatar Robert Ricci

Make sure to quote $mailfrom address

parent 208085cc
...@@ -1161,8 +1161,9 @@ sub send_mail($$$@) { ...@@ -1161,8 +1161,9 @@ sub send_mail($$$@) {
# 'Bcc:' lines # 'Bcc:' lines
my $mailfrom_str = ""; my $mailfrom_str = "";
if ($mailfrom) { if ($mailfrom) {
$mailfrom_str = "-f$mailfrom"; $mailfrom_str = "-f'$mailfrom'";
} }
print "| $SENDMAIL -odb -oem $mailfrom_str -t\n";
open(MAIL, "| $SENDMAIL -odb -oem $mailfrom_str -t"); open(MAIL, "| $SENDMAIL -odb -oem $mailfrom_str -t");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment