Closed damhiya closed 4 years ago
Can you give an example? The square brackets are not allowed in most places in a URI. They are allowed as part of IPv6 addresses in the host part, and that seems to be the only place they're allowed:
A host identified by an Internet Protocol literal address, version 6 [RFC3513] or later, is distinguished by enclosing the IP literal within square brackets ("[" and "]"). This is the only place where square bracket characters are allowed in the URI syntax.
Sorry, I don't have precise information about this (so I misunderstood the function)
What I expected from escapeURIString
was that It will escape registered characters appropriately for any input.
I read your comment and It seems solved
Hi. I found
parseURI
returnsNothing
when input string contains'['
or']'
. SinceisAllowedInURI
returnsTrue
for'['
and']'
,parseURI
should not be fail for uri that contains bracket character.