Bug 384501: If you have a port name in the urlbase, SMTP may not work
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit git-svn-id: svn://10.0.0.236/trunk@228151 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a7993f8da6
commit
a8e435d576
@ -87,7 +87,7 @@ sub MessageToMTA {
|
||||
# Sendmail will automatically append our hostname to the From
|
||||
# address, but other mailers won't.
|
||||
my $urlbase = Bugzilla->params->{'urlbase'};
|
||||
$urlbase =~ m|//([^/]+)/?|;
|
||||
$urlbase =~ m|//([^:/]+)[:/]?|;
|
||||
$hostname = $1;
|
||||
$from .= "\@$hostname" if $from !~ /@/;
|
||||
$email->header_set('From', $from);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user