зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
8d4f034f74
Коммит
ea1bd70917
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче