From: dkl%redhat.com <> Date: Sat, 19 Jan 2002 00:50:04 +0000 (+0000) Subject: Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl X-Git-Tag: bugzilla-2.16rc1~275 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eeb2fb8db4da64da0ec8e44e2fe91b8c797d093;p=thirdparty%2Fbugzilla.git Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl --- diff --git a/sidebar.cgi b/sidebar.cgi index 587b0c5343..073a1ecffc 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 2b1cfe0df1..578a91b9e8 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 1794d5f503..2991af580c 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 %]