aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsidebar.cgi5
-rw-r--r--t/004template.t3
-rw-r--r--template/default/sidebar/xul.tmpl2
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 %]
- <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 %]
[% IF NOT username %]