fix crash getting new mail when rules.dat has incorrect host name, r=naving, sr=sspitzer 149059

This commit is contained in:
bienvenu%netscape.com 2002-09-03 23:27:56 +00:00
Родитель 177baaa248
Коммит 97ac4945f7
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -5177,7 +5177,7 @@ PRBool nsMsgIMAPFolderACL::SetFolderRightsForUser(const char *userName, const ch
}
if (ourUserName &&
(!strcmp(ourUserName, myUserName.get()) || !strcmp(ourUserName, IMAP_ACL_ANYONE_STRING)))
(myUserName.Equals(ourUserName) || !strcmp(ourUserName, IMAP_ACL_ANYONE_STRING)))
{
// if this is setting an ACL for me, cache it in the folder pref flags
UpdateACLCache();
@ -5188,6 +5188,9 @@ PRBool nsMsgIMAPFolderACL::SetFolderRightsForUser(const char *userName, const ch
const char *nsMsgIMAPFolderACL::GetRightsStringForUser(const char *inUserName)
{
if (!inUserName)
return nsnull;
nsXPIDLCString userName;
userName.Assign(inUserName);
if (!userName.Length())