fix infinite loop with certain japanese folder names (dont' use continue in a while loop if you're not actually changing state!)

r=sspitzer
This commit is contained in:
alecf%netscape.com 2000-01-04 22:14:25 +00:00
Родитель ccd0aca547
Коммит d03c27a7ab
1 изменённых файлов: 8 добавлений и 7 удалений

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

@ -528,17 +528,18 @@ nsMsgFolder::parseURI(PRBool needServer)
PRBool haveFirst=PR_FALSE;
while (token) {
// skip leading '/' (and other // style things)
if (nsCRT::strcmp(token, "")==0) continue;
if (nsCRT::strcmp(token, "")!=0) {
// add .sbd onto the previous path
if (haveFirst) {
newPath+=".sbd";
newPath += "/";
if (haveFirst) {
newPath+=".sbd";
newPath += "/";
}
newPath += token;
haveFirst=PR_TRUE;
}
newPath += token;
haveFirst=PR_TRUE;
token = nsCRT::strtok(newStr, "/", &newStr);
}