summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkl%redhat.com <>2002-01-19 01:50:04 +0100
committerdkl%redhat.com <>2002-01-19 01:50:04 +0100
commit1eeb2fb8db4da64da0ec8e44e2fe91b8c797d093 (patch)
treeee7a09b1353d64c1cf929c8c6d0089d0ef2b54c3
parent7f11d4f1b5546becd6618b67f4314cbe6a6c90f8 (diff)
downloadbugzilla-1eeb2fb8db4da64da0ec8e44e2fe91b8c797d093.tar.gz
bugzilla-1eeb2fb8db4da64da0ec8e44e2fe91b8c797d093.tar.xz
Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
-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 %]