http://www.template-toolkit.org/docs/manual/Filters.html#section_uri states:
------
As of version 2.26 of the Template Toolkit, the uri and url filters use
the unsafe character set defined by RFC3986. This means that certain
characters ("(", ")", "~", "*", "!" and the single quote "'") are now
deemed unsafe and will be escaped as hex character sequences. The double
quote character ('"') is now deemed safe and will not be escaped.

If you want to enable the old behaviour then call the use_rfc2732() method
in Template::Filters
------

But
https://github.com/abw/Template2/blob/master/lib/Template/Filters.pm#L270
initializes the safe character set to be the RFC2732 one, not the RFC3986
one. So, unless I'm missing something, either the documentation or the
code should be changed to match the other. (It's unclear to me which one
is the intended behavior, otherwise I'd attach a patch.)


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to