]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 133423 - Audit templates for FILTER usage
authorbbaetz%student.usyd.edu.au <>
Sun, 7 Apr 2002 11:13:31 +0000 (11:13 +0000)
committerbbaetz%student.usyd.edu.au <>
Sun, 7 Apr 2002 11:13:31 +0000 (11:13 +0000)
r=gerv, justdave

26 files changed:
template/default/admin/account_created.tmpl
template/default/admin/account_exists.tmpl
template/default/admin/change-password.html.tmpl
template/default/admin/create_account.tmpl
template/default/attachment/created.atml
template/default/attachment/edit.atml
template/default/attachment/list.atml
template/default/attachment/viewall.atml
template/default/attachstatus/create.atml
template/default/attachstatus/delete.atml
template/default/attachstatus/edit.atml
template/default/attachstatus/list.atml
template/default/buglist/buglist.html.tmpl
template/default/buglist/change-form.tmpl
template/default/global/header
template/default/index.tmpl
template/default/info/describe-components.tmpl
template/default/info/quips.tmpl
template/default/prefs/account.tmpl
template/default/prefs/userprefs.tmpl
template/default/show/comments.tmpl
template/default/show/multiple.tmpl
template/default/show/show_bug.html.tmpl
template/default/token/confirmemail.html.tmpl
template/default/token/emailchangenew.txt.tmpl
template/default/token/emailchangeold.txt.tmpl

index ad4310ec4b10eaba4a48ca9fc8406f7da5a287a7..46bc82ad2d5325edfbe2f3d1518e831749167ce0 100644 (file)
@@ -25,7 +25,7 @@
 
 <p>
   A new account,  
-  <tt>[% login %]</tt>,
+  <tt>[% login FILTER html %]</tt>,
   has been created and a randomly-generated password has been e-mailed 
   to that address.
 </p>
index 23b9e03382a69c195280d6cb93cfe1d340458f4c..a4357a5a0a8f83ecd7c09bf7c44bd0043f615379 100644 (file)
@@ -25,8 +25,8 @@
 
 <form method="get" action="token.cgi">
   <input type="hidden" name="a" value="reqpw" />
-  <input type="hidden" name="loginname" value="[% login %]" />
-  A Bugzilla account for <tt>[% login %]</tt> already exists. If you
+  <input type="hidden" name="loginname" value="[% login FILTER html %]" />
+  A Bugzilla account for <tt>[% login FILTER html %]</tt> already exists. If you
   are the account holder and have forgotten your password, 
   <input type="submit" value="submit a request to change it" />.
 </form>
index 29d03c030b7e7e3224bd688a31adf30093db2ada..a8ad930eee4b74b18ab56d862a40964d0d9d8fb3 100644 (file)
@@ -26,7 +26,7 @@
 </p>
 
 <form method="post" action="token.cgi">
-  <input type="hidden" name="t" value="[% token %]" />
+  <input type="hidden" name="t" value="[% token FILTER html %]" />
   <input type="hidden" name="a" value="chgpw" />
   <table>
     <tr>
index 61ad95b8a81b14504aa0470f686678f3c83a6e42..ab35ce53d3287523473fb0037aad3a0787e8d8e4 100644 (file)
@@ -38,7 +38,7 @@
       </td>
       <td>
         <input size="35" name="login" />
-        [% Param('emailsuffix') %]
+        [% Param('emailsuffix') FILTER html %]
       </td>
     </tr>
     
index ab5e5ef9cd7e64ec4b0294b17fba40420e39378d..c46afe06b11d821115dbd03d3d96b83182b37b48 100644 (file)
@@ -28,7 +28,7 @@
   <tr>
     <td>
       <h2>
-        <a title="[% description %]" href="attachment.cgi?id=[% attachid %]&action=edit">Attachment #[% attachid %]</a> 
+        <a title="[% description FILTER html %]" href="attachment.cgi?id=[% attachid %]&action=edit">Attachment #[% attachid %]</a> 
         to <a href="show_bug.cgi?id=[% bugid %]">Bug #[% bugid %]</a> Created
       </h2>
 
index 599aff00aac4cf1440ebb3230e9535f3fdfb9349..1d06bfb6f4adcf3fecb0c0df5a6d712476780f97 100755 (executable)
       <td width="25%">
         <small>
         <b>Description:</b><br>
-          <textarea rows="3" cols="25" name="description" wrap="soft">[% description %]</textarea><br>
+          <textarea rows="3" cols="25" name="description" wrap="soft">[% description FILTER html %]</textarea><br>
 
         <b>MIME Type:</b><br>
-          <input type="text" size="20" name="contenttypeentry" value="[% contenttype %]"><br>
+          <input type="text" size="20" name="contenttypeentry" value="[% contenttype FILTER html %]"><br>
 
         <b>Flags:</b><br>
           <input type="checkbox" name="ispatch" value="1"[% " checked" IF ispatch %]>patch
         [% IF statusdefs.size %]
           <b>Status:</b><br>
             [% FOREACH def = statusdefs %]
-                <input type="checkbox" name="status" value="[% def.id %]"[% " checked" IF statuses.${def.id} %]>[% def.name %]<br>
+                <input type="checkbox" name="status" value="[% def.id %]"[% " checked" IF statuses.${def.id} %]>[% def.name FILTER html %]<br>
             [% END %]
         [% END %]
 
index 72006cf29005085066e32f80852c432ff2075200..12eeb03e77debc24712d636e35e6f513da9ecbc7 100755 (executable)
@@ -43,7 +43,7 @@
         [% IF attachment.ispatch %]
           <i>patch</i>
         [% ELSE %]
-          [% attachment.contenttype %]
+          [% attachment.contenttype FILTER html %]
         [% END %]
       </td>
 
@@ -55,7 +55,7 @@
           <i>none</i>
         [% ELSE %]
           [% FOREACH s = attachment.statuses %]
-            [% s %]<br>
+            [% s FILTER html %]<br>
           [% END %]
         [% END %]
         </nobr>
index 0500a09d4f4d91980e443305fec3122ae908553a..c3cca2ff3baf8d5599b989cbcde2d0517004ae11 100755 (executable)
   # Contributor(s): Myk Melez <myk@mozilla.org>
   #%]
 
+[% filtered_summary = bugsummary FILTER html %]
 [% INCLUDE global/header 
   title = "View All Attachments for Bug #$bugid"
   h1 = "View All Attachments for <a href=\"show_bug.cgi?id=$bugid\">Bug #$bugid</a>"
-  h2 = bugsummary
+  h2 = filtered_summary
   style = "
     th { text-align: right; vertical-align: top; }
     td { text-align: left; vertical-align: top; }
@@ -67,7 +68,7 @@
           <i>none</i>
         [% ELSE %]
           [% FOREACH s = a.statuses %]
-            [% s %]<br>
+            [% s FILTER html %]<br>
           [% END %]
         [% END %]
         </nobr>
index 128d811dcd9a7ec8356f3b4e5d656450dc6cedf6..7354b385249f68483a99b96b8bb72f1b12355e25 100755 (executable)
@@ -58,7 +58,7 @@
       <td>
         <select name="product">
           [% FOREACH item = products %]
-            <option value="[% item %]">[% item %]</option>
+            <option value="[% item FILTER html %]">[% item FILTER html %]</option>
           [% END %]
         </select>
       </td>
index 19648c6d0a67363e1133fb1390321ee39619e0de..dc50052b917821e9f58765987b39bb2e103e1cc9 100644 (file)
@@ -20,6 +20,9 @@
   #                 Jeff Hedlund <jeff.hedlund@matrixsi.com>
   #%]
 
+[%# Filter off the name here to be used multiple times below %]
+[% name = name FILTER html %]
+
 [% INCLUDE global/header 
   title = "Confirm Delete of Attachment Status '$name'" 
 %]
index 366f8eb7077f79b46c80cb4699f8de1d4134a7d8..1186d7637633aa8e3974b811a0d02f32b86296f9 100755 (executable)
     <tr>
       <th>Name:</th>
       <td>
-        <input type="text" name="name" value="[% name %]" size="50" maxlength="50">
+        <input type="text" name="name" value="[% name FILTER html %]" size="50" maxlength="50">
       </td>
     </tr>
 
     <tr>
       <th>Description:</th>
       <td>
-        <textarea name="desc" rows="4" cols="50">[% desc %]</textarea>
+        <textarea name="desc" rows="4" cols="50">[% desc FILTER html %]</textarea>
       </td>
     </tr>
 
@@ -56,7 +56,7 @@
     <tr>
       <th>Product:</th>
       <td>
-        [% product %]
+        [% product FILTER html %]
       </td>
     </tr>
 
index f2d0a4f512c17cedf2796e653bc328eab6fa7070..551ab182a918b16b5aadecf2680dc1be32bb3da3 100755 (executable)
@@ -43,7 +43,7 @@
       <td>[% statusdef.name FILTER html %]</td>
       <td>[% statusdef.description FILTER html %]</td>
       <td>[% statusdef.sortkey %]</td>
-      <td>[% statusdef.product %]</td>
+      <td>[% statusdef.product FILTER html %]</td>
       <td>
         <a href="editattachstatuses.cgi?action=edit&id=[% statusdef.id %]">
             Edit</a>
index e4afa8e4dea4f5f9b08e3abddbd272b1b7db0fa3..37a202fe5034d0818df5ebaac74bfe19d71134ef 100644 (file)
@@ -43,7 +43,7 @@
   [% END %]
 
   [% IF quip %]
-    <a href="quips.cgi"><i>[% quip %]</i></a>
+    <a href="quips.cgi"><i>[% quip FILTER html %]</i></a>
   [% END %]
 
 </div>
index 8bec88c3e2428427a19027aa96d14ec56a5075f2..60c1a2de76402617b5c8888651f1f6056ec5a08a 100644 (file)
   <select name="resolution" onchange="document.forms.changeform.knob[[% knum %]].checked=true">
     [% FOREACH resolution = resolutions %]
       [% NEXT IF !resolution %]
-      <option value="[% resolution %]" [% selected IF resolution == "FIXED" %]>
-        [% resolution %]
+      <option value="[% resolution FILTER html %]" [% selected IF resolution == "FIXED" %]>
+        [% resolution FILTER html %]
       </option>
     [% END %]
   </select><br />
   Reassign</A> bugs to
 </label>
 <input name="assigned_to" 
-       value="[% user %]"
+       value="[% user FILTER html %]"
        onchange="document.forms.changeform.knob[[% knum %]].checked = true;"
        size="32"><br />
 
index 5e6a183dde79e49d43f717a6c4bb1f9b2cf047af..dfb3cc0801bf7f32a56b2ee4f4b7c091e3e29777 100755 (executable)
@@ -11,7 +11,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
   <head>
-    <title>[% title %]</title>
+    <title>[% title FILTER html %]</title>
     
     [% Param('headerhtml') %]
     
index 2f3603c682d59958eb95eb60931494d6262e6f4c..7b00539e8d5d6ed58aac267df24b6cacc5bf0a7d 100644 (file)
@@ -56,7 +56,7 @@ function addSidebar() {
 [% IF username %]
   <a href="[% PerformSubsts(Param('mybugstemplate'), subst) %]">My Bugs</a><br>
   <a href="userprefs.cgi">Change password or user preferences</a><br>
-  <a href="relogin.cgi">Logout [% username %]</a><br>
+  <a href="relogin.cgi">Logout [% username FILTER html %]</a><br>
 [% ELSE %]
   <a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a><br>
   <a href="createaccount.cgi">Open a new Bugzilla account</a><br>
index 5ee8bf4a0b266ceb381eeaec996ee0656c102571..c9dacca10920d6b9dc60975ac12907354c27868c 100644 (file)
   # Contributor(s): Bradley Baetz <bbaetz@student.usyd.edu.au>
   #%]
 
+[% filtered_product = product FILTER html %]
 [% INCLUDE global/header 
-  title = "Components for $product" 
-  h2 = product %]
+  title = "Components for $product"
+  h2 = filtered_product %]
 
 [% IF Param("useqacontact") %]
   [% numcols = 3 %]
@@ -70,7 +71,7 @@
     </td>
     <td>
       <a href="mailto:[% comp.initialowner %][% Param('emailsuffix') %]">
-      [% comp.initialowner %]</a>
+      [% comp.initialowner FILTER html %]</a>
     </td>
     [% IF Param("useqacontact") %]
       <td>
index 37e9d863fb3c268b21ebd147f8b9fcae046f8872..d055576500f474f16b3a2559255ff480312d65ea 100644 (file)
@@ -27,7 +27,7 @@
 [% IF added_quip %]
   <p>
     <font color="red">
-      Your quip '<tt>[% added_quip %]</tt>' has been added.
+      Your quip '<tt>[% added_quip FILTER html %]</tt>' has been added.
     </font>
   </p>
 [% END %]
index e436d07a5982e7980025d685564f51a6798b305d..2033e86fc775c4d725ff3173aa5c59134b60adfa 100644 (file)
@@ -69,7 +69,7 @@
       [% IF new_login_name %]
         <tr>
           <th align="right">Pending email address:</th>
-          <td>[% new_login_name %]</td>
+          <td>[% new_login_name FILTER html %]</td>
         </tr>
         <tr>
           <th align="right">Change request expires:</th>
index 8992794b1127ac3aedf4696053763abb3599e63f..5d9fc6eb3510611868dc4c09e6f86d9ab5bfa92b 100644 (file)
   #                displaying anything, and can contain an optional custom
   #                message if required (which Perl still evaluates as True).
   #%]
+
+[% filtered_login = login FILTER html %]
 [% INCLUDE global/header
    title = "User Preferences"
-   h2 = login
+   h2 = filtered_login
    style = "td.selected_tab {
               border-width: 2px 2px 0px;
               border-style: solid; 
index 14828175d5543fd9246aadca9a370397e125178a..b020caa0f0680623e56f18106676d50eb90dcebd 100644 (file)
@@ -39,7 +39,7 @@
     <br>
     <i>------- Additional Comment
       <a name="c[% count %]" href="#c[% count %]">#[% count %]</a> From 
-      <a href="mailto:[% comment.email %]">[% comment.name %]</a>
+      <a href="mailto:[% comment.email FILTER html %]">[% comment.name FILTER html %]</a>
       [%+ comment.time %] -------
     </i>
   [% END %]
index 2673c54571792607d933f7549719685f0e044f4d..8313323aaa1a6ef886dea368a032a49154c2771e 100644 (file)
@@ -96,7 +96,7 @@
       <td colspan="2">
       [% IF Param('usetargetmilestone') %]
           <b>Target Milestone:</b>&nbsp;
-          [% bug.target_milestone %]
+          [% bug.target_milestone FILTER html %]
       [% END %]
       </td>
     </tr>
     
     <tr>
       <td colspan="4">
-        <b>Summary:</b>&nbsp;[% bug.short_desc %]
+        <b>Summary:</b>&nbsp;[% bug.short_desc FILTER html %]
       </td>
     </tr>
      
     [% IF use_keywords %]
       <tr>
         <td colspan="4">
-          <b>Keywords: </b>&nbsp;[% bug.keywords %]
+          <b>Keywords: </b>&nbsp;[% bug.keywords FILTER html %]
         </td>
       </tr>
     [% END %]
 [% BLOCK cell %]
   <td>
     <b>[% attr.description%]:</b>&nbsp;
-    [% bug.${attr.name} %]
+    [% bug.${attr.name} FILTER html %]
   </td>
 [% END %]
index c6f7deb2bc350d6b4cf7044a338c35cc674b4589..9b77c23a24524b98a3b727a6cbdfeeecd52f671f 100644 (file)
   # Contributor(s): Gervase Markham <gerv@gerv.net>
   #%]
 
+[% filtered_desc = bug.short_desc FILTER html %]
 [% UNLESS header_done %]
   [% INCLUDE global/header 
     title = "Bug $bug.bug_id - $bug.short_desc"
     h1 = "Bugzilla Bug $bug.bug_id"
-    h2 = bug.short_desc
+    h2 = filtered_desc
     extra = navigation_links()
    %]
 [% END %]
index e34a93e63cf6302f42654823590013221705e6db..4d4102968d43c095b05822b5f08cfea2c6715c21 100644 (file)
@@ -27,7 +27,7 @@
 </p>
 
 <form method="post" action="token.cgi">
-  <input type="hidden" name="t" value=[% token %]>
+  <input type="hidden" name="t" value=[% token FILTER html %]>
   <input type="hidden" name="a" value="chgem">
   <table>
     <tr>
index 9a0a1e8d7cd23452d232f907583bba62fc4bed4a..5a5ae2535760869729f7652e054af4688e4a6a40 100644 (file)
@@ -27,10 +27,10 @@ for the [% oldemailaddress %] account to your address.
 
 To confirm the change, visit the following link:
 
-[% Param('urlbase') %]token.cgi?a=cfmem&t=[% token %]
+[% Param('urlbase') %]token.cgi?a=cfmem&t=[% token FILTER html %]
 
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[% Param('urlbase') %]token.cgi?a=cxlem&t=[% token %]
+[% Param('urlbase') %]token.cgi?a=cxlem&t=[% token FILTER html %]
 
index 661f8f1d479f0cbd1bf0fde8ea5cb132bb3250b7..82ecf1dfcce1093ab65f3d03f06d822ad278ded3 100644 (file)
@@ -31,5 +31,5 @@ for your account to [% newemailaddress %].
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[% Param('urlbase') %]token.cgi?a=cxlem&t=[% token %]
+[% Param('urlbase') %]token.cgi?a=cxlem&t=[% token FILTER html %]