Actions
Bug #6696
closed[PATCH] ERB::Util.url_encode should not escape unreserved characters
Description
ERB::Util.url_encode is escaping tilde (~) where it should not according to the RFC.
This fixes that behaviour so that it now correctly avoids escaping all unreserved characters as per RFC 3986, Section 2.3:
http://tools.ietf.org/html/rfc3986#section-2.3
Fwiw., this is also how the Perl implementation works:
http://search.cpan.org/dist/URI/URI/Escape.pm#DESCRIPTION
I opened this issue originally on Github, but I think it warrants further discussion, so re-opening here.
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0