mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fix bug 31568. Need to check if hostname isn't empty. R=mscott, A=phil,jar
This commit is contained in:
parent
e7dc30bdcd
commit
6cfd1b423d
@ -115,7 +115,7 @@ nsresult nsSmtpService::SendMailMessage(nsIFileSpec * aFilePath,
|
||||
smtpServer->GetHostname(getter_Copies(smtpHostName));
|
||||
smtpServer->GetUsername(getter_Copies(smtpUserName));
|
||||
|
||||
if ((const char*)smtpHostName)
|
||||
if ((const char*)smtpHostName && (const char*)smtpHostName[0] != 0)
|
||||
{
|
||||
rv = NS_MsgBuildSmtpUrl(aFilePath, smtpHostName, smtpUserName,
|
||||
aRecipients, aSenderIdentity, aUrlListener,
|
||||
|
Loading…
Reference in New Issue
Block a user