eclipse/vert.x — pull request #836 by adrianluisgonzalez (2014-05-21 16:11:03+00:00)
Title: UriParser - check if path starts with "/" to avoid returning an incorrect path

Check if the path starts with "/" to avoid taking the path from a query parameter URI that is not correctly encoded. The uri passed to UriParser.path() is a relative uri.

For example if the request URI is:
`http://localhost:8080/correct/path?url=http://localhost:8008/wrong/path`

The UriParser.path() receives:
`/correct/path?url=http://localhost:8008/wrong/path`

UriParser.path() will return `/wrong/path` rather than `/correct/path`

I cannot always control what the client sends to me, so it would be easier if unencoded query parameters were handled.

Here's a running example of the problem:
https://github.com/adrianluisgonzalez/uri-parser-demo