mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
fix for #14326
r=gagan nsStdURL was not correctly parsing the host out of url's like "foo://bar@cheese"
This commit is contained in:
parent
ad155c748f
commit
259ce26195
@ -316,8 +316,8 @@ nsStdURL::Parse(void)
|
||||
if (!brk) // its just http://user@host
|
||||
{
|
||||
ExtractString(mSpec, &mHost,
|
||||
(lastbrk+1 - mSpec),
|
||||
len - (lastbrk+1 - mSpec));
|
||||
(lastbrk - mSpec),
|
||||
len - (lastbrk - mSpec));
|
||||
return NS_OK;
|
||||
}
|
||||
ExtractString(mSpec, &mHost,
|
||||
|
Loading…
x
Reference in New Issue
Block a user