Commit 1eeb2fb8 authored by dkl%redhat.com's avatar dkl%redhat.com

Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl

parent 7f11d4f1
...@@ -40,11 +40,6 @@ my $template = Template->new( ...@@ -40,11 +40,6 @@ my $template = Template->new(
# Allow templates to be specified with relative paths. # Allow templates to be specified with relative paths.
RELATIVE => 1, RELATIVE => 1,
POST_CHOMP =>1, POST_CHOMP =>1,
# Functions for processing text within templates
FILTERS =>
{
url => \&url_quote,
},
} }
); );
......
...@@ -60,8 +60,7 @@ my $template = Template->new( ...@@ -60,8 +60,7 @@ my $template = Template->new(
# actually have to function in this test, just be defined. # actually have to function in this test, just be defined.
FILTERS => FILTERS =>
{ {
url => sub { return $_ } , },
}
} }
); );
......
...@@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) { ...@@ -100,7 +100,7 @@ function normal_keypress_handler( aEvent ) {
[% END %] [% END %]
[% FOREACH name = namedqueries %] [% FOREACH name = namedqueries %]
<text class="text-link" onclick="load_relative_url('buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% name FILTER url %]')" value="[% name FILTER html %]"/> <text class="text-link" onclick="load_relative_url('buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% name FILTER uri %]')" value="[% name FILTER html %]"/>
[% END %] [% END %]
[% IF NOT username %] [% IF NOT username %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment