]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 666695 - Voting Extension templates have unfiltered directives
authorDavid Lawrence <dlawrence@mozilla.com>
Tue, 5 Jul 2011 04:52:08 +0000 (00:52 -0400)
committerDavid Lawrence <dlawrence@mozilla.com>
Tue, 5 Jul 2011 04:52:08 +0000 (00:52 -0400)
r/a=mkanat

extensions/Voting/template/en/default/hook/admin/users/confirm-delete-warn_safe.html.tmpl
extensions/Voting/template/en/default/hook/bug/edit-after_importance.html.tmpl
extensions/Voting/template/en/default/pages/voting/user.html.tmpl

index f799f12544a26675aacfe7d5b72bb2fc482a399c..a753e3a66b44d46d5871be937e82e60a0672bc2b 100644 (file)
@@ -24,7 +24,7 @@
     [% IF votes == 1 %]
       [%+ terms.abug %]
     [% ELSE %]
-      [%+ votes %] [%+ terms.bugs %]
+      [%+ votes FILTER html %] [%+ terms.bugs %]
     [% END %].
 
     If you delete the user account,
index 606f981ee7a1c28ef2a99b3cafd30c36eb2d5d05..8e2d9beeaadeb13bfd1b444cfbeea39212886092 100644 (file)
@@ -27,7 +27,7 @@
       with
       <a href="page.cgi?id=voting/bug.html&amp;bug_id=
                [%- bug.id FILTER url_quote %]">
-        [%- bug.votes %] 
+        [%- bug.votes FILTER html %] 
         [% IF bug.votes == 1 %]
             vote
         [% ELSE %]
index c2ee2ae7af37f282a05bc44a4e5b5a0e12e319f9..6f67884318694fe54495ff50405d206f8fad8573 100644 (file)
             [% IF product.maxperbug < product.maxvotes AND
                   product.maxperbug > 1 %]
               <font size="-1">
-                (Note: only [% product.maxperbug %] vote
+                (Note: only [% product.maxperbug FILTER html %] vote
                 [% "s" IF product.maxperbug != 1 %] allowed per [% terms.bug %] in
                 this product.)
               </font>
             class="bz_bug_being_voted_on" [% END %]>
             <td>[% IF bug.id == this_bug.id && canedit %]Enter New Vote here &rarr;
               [%- END %]</td>
-            <td align="right"><a name="vote_[% bug.id %]">
+            <td align="right"><a name="vote_[% bug.id FILTER html %]">
               [% IF canedit %]
                 [% IF product.onevoteonly %]
-                  <input type="checkbox" name="[% bug.id %]" value="1"
-                    [% " checked" IF bug.count %] id="bug_[% bug.id %]">
+                  <input type="checkbox" name="[% bug.id FILTER html %]" value="1"
+                    [% " checked" IF bug.count %] id="bug_[% bug.id FILTER html %]">
                 [% ELSE %]
-                  <input name="[% bug.id %]" value="[% bug.count %]"
-                         size="2" id="bug_[% bug.id %]">
+                  <input name="[% bug.id FILTER html %]" value="[% bug.count FILTER html %]"
+                         size="2" id="bug_[% bug.id FILTER html %]">
                 [% END %]
               [% ELSE %]
-                [% bug.count %]
+                [% bug.count FILTER html %]
               [% END %]
             </a></td>
             <td align="center">
             </td>
             <td>
               [% bug.summary FILTER html %]
-              (<a href="page.cgi?id=voting/bug.html&amp;bug_id=[% bug.id %]">Show Votes</a>)
+              (<a href="page.cgi?id=voting/bug.html&amp;bug_id=[% bug.id FILTER url_quote %]">Show Votes</a>)
             </td>
           </tr>
         [% END %]
 
         <tr>
           <td></td>
-          <td colspan="3">[% product.total %] vote
-            [% "s" IF product.total != 1 %] used out of [% product.maxvotes %]
+          <td colspan="3">[% product.total FILTER html %] vote
+            [% "s" IF product.total != 1 %] used out of [% product.maxvotes FILTER html %]
             allowed.
             <br>
             <br>