commit | 518e8d27de9f32eb86bc3090ee2759ea93b9fb93 | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Mon Jul 09 11:42:50 2018 +0100 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Jul 27 18:44:38 2018 +0000 |
tree | 75eff8b88a6714e0f59b8654142b2cab3116ea19 | |
parent | 5c2be05f23f66028ccebfd7de64a3673fee6e509 [diff] |
Fix hostname parsing in java.net.URLStreamHandler. As per https://url.spec.whatwg.org/#host-state, any of the characters '/', '\', '#' or '?' should be treated as terminators when parsing the host part of a URL. Change-Id: I1dc8db7101fdd863b51408b9cfb3ef7a585f1c04 Tested: Ran CtsLibcoreTestCases Bug: 110955991 (cherry picked from commit 512b127b593c9bdfbd92e2744495d9e17be9b4f3)