From 1eeb2fb8db4da64da0ec8e44e2fe91b8c797d093 Mon Sep 17 00:00:00 2001 From: "dkl%redhat.com" <> Date: Sat, 19 Jan 2002 00:50:04 +0000 Subject: Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl --- sidebar.cgi | 5 ----- t/004template.t | 3 +-- template/default/sidebar/xul.tmpl | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sidebar.cgi b/sidebar.cgi index 587b0c534..073a1ecff 100755 --- a/sidebar.cgi +++ b/sidebar.cgi @@ -40,11 +40,6 @@ my $template = Template->new( # Allow templates to be specified with relative paths. RELATIVE => 1, POST_CHOMP =>1, - # Functions for processing text within templates - FILTERS => - { - url => \&url_quote, - }, } ); diff --git a/t/004template.t b/t/004template.t index 2b1cfe0df..578a91b9e 100644 --- a/t/004template.t +++ b/t/004template.t @@ -60,8 +60,7 @@ my $template = Template->new( # actually have to function in this test, just be defined. FILTERS => { - url => sub { return $_ } , - } + }, } ); diff --git a/template/default/sidebar/xul.tmpl b/template/default/sidebar/xul.tmpl index 1794d5f50..2991af580 100644 --- a/template/default/sidebar/xul.tmpl +++ b/template/default/sidebar/xul.tmpl @@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) { [% END %] [% FOREACH name = namedqueries %] - + [% END %] [% IF NOT username %] -- cgit v1.2.3-24-g4f1b