mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
fixes bug 110418; r=morse, sr=alecf
This commit is contained in:
parent
4de030ec9c
commit
eb86e42576
@ -651,9 +651,9 @@ nsStandardURL::GetHost(char **result)
|
||||
nsresult rv;
|
||||
// strip []'s if hostname is an IPv6 address literal
|
||||
if (mSpec.CharAt(mHostname.mPos) == '[')
|
||||
rv = NewSubstring(mHostname.mPos + 1, mHostname.mLen - 2, result, PR_TRUE);
|
||||
rv = NewSubstring(mHostname.mPos + 1, mHostname.mLen - 2, result);
|
||||
else
|
||||
rv = NewSubstring(mHostname, result, PR_TRUE);
|
||||
rv = NewSubstring(mHostname, result);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user