Bug 179026 - URL parameter containing non-ASCII characgter is not parsed correctly

r=dbradley, sr=dveditz, patch by darin
This commit is contained in:
dbradley%netscape.com 2002-11-11 14:16:34 +00:00
parent f93d6940f2
commit 299a61f9fe

View File

@ -133,7 +133,7 @@ nsBaseURLParser::ParseURL(const char *spec, PRInt32 specLen,
}
// ignore trailing whitespace and control characters
for (p = spec + specLen - 1; (*p <= ' ') && (p != spec); --p)
for (p = spec + specLen - 1; ((unsigned char) *p <= ' ') && (p != spec); --p)
;
specLen = p - spec + 1;