Fix a bug in parsing the port value from a URL.

This commit is contained in:
Dain 2012-01-04 12:01:43 -07:00
parent 651b0eb49a
commit 70408ea717

View File

@ -38,7 +38,7 @@ public abstract class URLStreamHandler {
host = s.substring(0, slash); host = s.substring(0, slash);
} else { } else {
host = s.substring(0, colon); host = s.substring(0, colon);
port = Integer.parseInt(s.substring(colon + 1), slash); port = Integer.parseInt(s.substring(colon + 1, slash));
} }
s = s.substring(slash + 1); s = s.substring(slash + 1);
} }