Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 24923
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: nigel.metheringham [...] Dev.intechnology.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 2.17
  • 2.18
Fixed in: (no value)



Subject: uri filter too aggressive
In 2.15b and later the uri filter has been made more aggressive. This means it can no longer be used to quote full URIs because the quoting transforms an absolute URI into a local relative See RT #19593 Now So [% "http://www.template-toolkit.org/" | uri %] gives http%3A%2F%2Fwww.template-toolkit.org%2F Maybe we should change $text =~ s/([^A-Za-z0-9\-_.!~*'()])/$URI_ESCAPES->{$1}/eg; to $text =~ s/([^A-Za-z0-9\-_.!~*'():\/])/$URI_ESCAPES->{$1}/eg;
On Tue Feb 13 07:53:52 2007, nigel.metheringham@Dev.intechnology.co.uk wrote: Show quoted text
> In 2.15b and later the uri filter has been made more aggressive.
Yes, that's right. The uri filter was changed to be more *correct* (which unfortunately meant too aggressive for this usage). The url filter was added to provide the old behaviour. Cheers A