mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 179026 - URL parameter containing non-ASCII characgter is not parsed correctly
r=dbradley, sr=dveditz, patch by darin
This commit is contained in:
parent
f93d6940f2
commit
299a61f9fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user