]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
authordkl%redhat.com <>
Sat, 19 Jan 2002 00:50:04 +0000 (00:50 +0000)
committerdkl%redhat.com <>
Sat, 19 Jan 2002 00:50:04 +0000 (00:50 +0000)
sidebar.cgi
t/004template.t
template/default/sidebar/xul.tmpl

index 587b0c53434fc655512cbbb72a8a9342f32c4bee..073a1ecffcafa112de0ae14f7ae30c79ecb4185f 100755 (executable)
@@ -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,
-      },
   }
 );
 
index 2b1cfe0df15a74264f0a973d20372fd28d59e098..578a91b9e821488c01446e47befe754193cb83b5 100644 (file)
@@ -60,8 +60,7 @@ my $template = Template->new(
     # actually have to function in this test, just be defined.
     FILTERS =>
     {
-      url => sub { return $_ } ,
-    } 
+    },
 }
 );
 
index 1794d5f503411134962efe29e020e7743d4c78a4..2991af580c9019a1a6c79bd24612f23efaa4594d 100644 (file)
@@ -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 %]