hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject URLEncodeUtils - change in format behaviour since 4.2
Date Tue, 26 Jun 2012 01:00:35 GMT
The escaping of non-alphabetic characters by the format methods is no
longer quite the same as that done by java.net.URLEncoder.encode.

The former allows the chars in ".-*_!'()" to pass through without
conversion, whereas the latter only allows ".-*_" unchanged.
The latter is also how browsers behave when escaping form fields.

I think the behaviour should be consistent with URLEncoder and browsers.
That was in fact the behaviour with 4.2, which delegated the escaping
to URLEncoder.
I think the code should revert to using URLEncoder/URLDecoder.

There is still a need for the extended path, query and fragment
escape/unescape methods, but perhaps these belong in URIBuilder?
If not, maybe they should be in a separate class anyway?

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message