Bug 453466 - in ff3 an imported self-signed server certificate can't be marked trusted (edit button disabled), r=honzab

This commit is contained in:
Kai Engert 2009-03-18 15:59:57 +01:00
Родитель c6cf082ec7
Коммит 44b0f6d72b
1 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -903,10 +903,12 @@ void
nsCertOverrideService::GetHostWithPort(const nsACString & aHostName, PRInt32 aPort, nsACString& _retval)
{
nsCAutoString hostPort(aHostName);
if (aPort == -1)
if (aPort == -1) {
aPort = 443;
hostPort.AppendLiteral(":");
hostPort.AppendInt(aPort);
}
if (!hostPort.IsEmpty()) {
hostPort.AppendLiteral(":");
hostPort.AppendInt(aPort);
}
_retval.Assign(hostPort);
}
}