r=gagan
nsStdURL was not correctly parsing the host out of url's like "foo://bar@cheese"
This commit is contained in:
sspitzer%netscape.com 1999-09-20 07:45:42 +00:00
parent ad155c748f
commit 259ce26195

View File

@ -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,