Fix olocalhost:631

This commit is contained in:
Kris Maglione committed 2008-12-14 18:43:43 -05:00
1 parent 689c101ff3
commit 348fa9dc1a
1 file changed
+1 -1
+1 -1
View File
@@ -485,7 +485,7 @@ const util = { //{{{
// Ok, not a valid proto. If it looks like URL-ish (foo.com/bar),
// let Gecko figure it out.
if (/[.]/.test(url) && !/\s/.test(url))
if (/[.]/.test(url) && !/\s/.test(url) || /^[\w.]+:\d+(?:\/|$)/)
return url;
// TODO: it would be clearer if the appropriate call to