aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorKoosha KM <koosha.khajeh@gmail.com>2014-11-12 20:13:11 +0000
committerDavid Lawrence <dkl@mozilla.com>2014-11-12 20:14:19 +0000
commitff42357eb635362c08112968c859a410d53a7e37 (patch)
treef111defab7bf32d8a44f203bae84258c3da7065e /Bugzilla
parent0b19b103cbd85e804495b6b48c05464da1568daf (diff)
downloadbugs-ff42357eb635362c08112968c859a410d53a7e37.tar
bugs-ff42357eb635362c08112968c859a410d53a7e37.tar.gz
bugs-ff42357eb635362c08112968c859a410d53a7e37.tar.bz2
bugs-ff42357eb635362c08112968c859a410d53a7e37.tar.xz
bugs-ff42357eb635362c08112968c859a410d53a7e37.zip
Bug 1095758: Fix use of uninitialized value $hostname in Mailer.pm
r=dkl,a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Mailer.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 4447d4046..0b82ded41 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -116,7 +116,7 @@ sub MessageToMTA {
# address, but other mailers won't.
my $urlbase = Bugzilla->params->{'urlbase'};
$urlbase =~ m|//([^:/]+)[:/]?|;
- $hostname = $1;
+ $hostname = $1 || 'localhost';
$from .= "\@$hostname" if $from !~ /@/;
$email->header_set('From', $from);