зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ccd0aca547
Коммит
d03c27a7ab
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче