mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
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:
parent
ccd0aca547
commit
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user