diff options
| author | Kenny Root <kenny@the-b.org> | 2009-07-12 10:33:28 -0500 |
|---|---|---|
| committer | Jean-Baptiste Queru <jbq@google.com> | 2009-09-14 17:45:04 -0700 |
| commit | fc01794f33057862a361a0d0113630c58befc21b (patch) | |
| tree | 9f6096454c1ad47c4c3a9b5b2e2ef40517a02543 /test-runner | |
| parent | f9d9cf1ec146d8edbb2094416a823cd7b43098d0 (diff) | |
| download | frameworks_base-fc01794f33057862a361a0d0113630c58befc21b.zip frameworks_base-fc01794f33057862a361a0d0113630c58befc21b.tar.gz frameworks_base-fc01794f33057862a361a0d0113630c58befc21b.tar.bz2 | |
Make Uri.parseUserPart, parseHost, and parsePort symmetric
Currently parseUserPart uses the encoded authority to split the URI
into user and non-user parts, but the parseHost and parsePort uses
the decoded URI to split the URI into non-host, host, and port parts.
This gives unexpected results when %40 ('@') and %3a (':') is used
in a URI:
Uri test = Uri.parse("http://bob%40lee%3ajr@example.com:42/");
test.getUserInfo() => "bob@lee:jr"
test.getHost() => "lee:jr@example.com" (should be "example.com")
test.getPort() => -1 (should be 42)
Diffstat (limited to 'test-runner')
0 files changed, 0 insertions, 0 deletions
