From f6c87e29b4df59e1533ac0634738ac5c9764acc3 Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Tue, 16 May 2000 08:46:03 +0000 Subject: [PATCH] Fix for bug 27930. Support for IPv6. --- docshell/base/nsDocShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 27b3c4d53a82..b68dd3328585 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -2326,7 +2326,8 @@ NS_IMETHODIMP nsDocShell::CreateFixupURI(const PRUnichar* aStringURI, if (colon == -1 || fSlash == -1 || (fSlash > -1) && (colon > fSlash)) { if (colon < (((PRInt32)uriString.Length())-1)) { if (colon != -1) port = uriString.CharAt(colon+1); - if (colon == -1 || uriString.IsDigit(port)) { + if (colon == -1 || uriString.IsDigit(port) || + uriString.CharAt(0) == '[') { // find host name PRInt32 hostPos = uriString.FindCharInSet("./:"); if (hostPos == -1)