commit | 615d462e2b5561fed2cdaa5be8ea4d6ec42b23f0 | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Mon Jul 09 11:42:50 2018 +0100 |
committer | mspector <mspector@google.com> | Thu Jul 19 01:50:23 2018 -0700 |
tree | d74617e49e4679dfde198aa5166b2b445b451b1e | |
parent | ad72e4c1197c4553eb2a176248d08bc726dffb43 [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)