summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-07-12 10:33:28 -0500
committerJean-Baptiste Queru <jbq@google.com>2009-09-14 17:45:04 -0700
commitfc01794f33057862a361a0d0113630c58befc21b (patch)
tree9f6096454c1ad47c4c3a9b5b2e2ef40517a02543 /test-runner
parentf9d9cf1ec146d8edbb2094416a823cd7b43098d0 (diff)
downloadframeworks_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