зеркало из https://github.com/mozilla/gecko-dev.git
fix for #61464. when autosubscribing to a secure news server (clicking on a snews:// url)
set the port to be the default secure news port, if it is not specified in the snews:// url. sr=mscott
This commit is contained in:
Родитель
5e164d10cd
Коммит
36e310c4c3
|
@ -978,6 +978,9 @@ nsNntpService::GetProtocolForUri(nsIURI *aUri, nsIMsgWindow *aMsgWindow, nsINNTP
|
|||
PRBool isSecure = PR_FALSE;
|
||||
if (nsCRT::strcasecmp("snews",(const char *)scheme) == 0) {
|
||||
isSecure = PR_TRUE;
|
||||
if ((port == 0) || (port == -1)) {
|
||||
port = SECURE_NEWS_PORT;
|
||||
}
|
||||
}
|
||||
rv = CreateNewsAccount((const char *)userName,(const char *)hostName,isSecure,port,getter_AddRefs(server));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче