]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 330555: [SECURITY] H1, H2 and H3 are not filtered in global/header.html.tmpl...
authorlpsolit%gmail.com <>
Sun, 15 Oct 2006 03:48:47 +0000 (03:48 +0000)
committerlpsolit%gmail.com <>
Sun, 15 Oct 2006 03:48:47 +0000 (03:48 +0000)
template/en/default/admin/flag-type/edit.html.tmpl
template/en/default/admin/groups/edit.html.tmpl
template/en/default/admin/groups/remove.html.tmpl
template/en/default/admin/users/confirm-delete.html.tmpl
template/en/default/admin/users/edit.html.tmpl
template/en/default/bug/create/create.html.tmpl
template/en/default/bug/show.html.tmpl
template/en/default/filterexceptions.pl
template/en/default/global/header.html.tmpl
template/en/default/reports/duplicates.html.tmpl

index b7ff82949c9dc15ab044a28cdb985108efe6a648..942fb3b09d49bb3ae598be865276cf95652e8cdc 100644 (file)
@@ -35,9 +35,9 @@
 [% END %]
 
 [% IF last_action == "copy" %]
-  [% title = "Create Flag Type Based on $type.name" %]
+  [% title = BLOCK %]Create Flag Type Based on [% type.name FILTER html %][% END %]
 [% ELSIF last_action == "edit" %]
-  [% title = "Edit Flag Type $type.name" %]
+  [% title = BLOCK %]Edit Flag Type [% type.name FILTER html %][% END %]
 [% END %]
 
 [% PROCESS global/header.html.tmpl
index a66e78fde5e0454f5f87ebd1d50d8322cf04ef8c..c1d032e1a5348f3a63fdbba1a9f8db3bbd078e02 100644 (file)
   #                   be aware of the group being edited and its members.
   #%]
 
+[% title = BLOCK %]Change Group: [% name FILTER html %][% END %]
 
 [% PROCESS global/header.html.tmpl
-  title = "Change Group: $name"
+  title = title
   style = "tr.odd_row {
                background: #e9e9e9; 
            }
index 0eed2d9fbee9ccb75f041089f3bfeecdcbfd5b38..8c41333e48dc66f6567dbeb931989abedaae4e3b 100644 (file)
 
 
 [% IF remove_all %]
-  [% title = "Removing All Explicit Group Memberships from '"
-      _ name _ "'" %]
+  [% title = BLOCK %]
+    Removing All Explicit Group Memberships from '[% name FILTER html %]'
+  [% END %]
 [% ELSE %]
-  [% title = "Removing All Explicit Group Memberships Matching "
-      _ "Group RegExp from '" _ name _ "'" %]
+  [% title = BLOCK %]
+    Removing All Explicit Group Memberships Matching Group RegExp from '[% name FILTER html %]'
+  [% END %]
 [% END %]
 
 [% PROCESS global/header.html.tmpl %]
index 02efdb82adff04cae293dee62b19c82c8604fe3b..6f0a565caf296cc07f2573f1709f487ba7cc646c 100644 (file)
   #                           created
   #%]
 
+[% title = BLOCK %]Confirm deletion of user [% otheruser.login FILTER html %][% END %]
+
 [% PROCESS global/header.html.tmpl
-  title = "Confirm deletion of user $otheruser.login"
+  title = title
   style_urls = ['skins/standard/admin.css',
                 'skins/standard/editusers.css']
 %]
index c35bb691f2152ad7d82b57b7043745cf0da69b41..b0cc210826f21484d35baa9ae5cf2080af044e01 100644 (file)
   #                      canbless) for viewed user.
   #%]
 
+[% title = BLOCK %]Edit user [% otheruser.login FILTER html %][% END %]
+
 [% PROCESS global/header.html.tmpl
-  title = "Edit user $login"
+  title = title
   message = message
   style_urls = ['skins/standard/editusers.css']
 %]
index 812abb075907df1003269ef8acc609a0e0db6e22..62f8004f2cda5a38e026f6eb818318351f83b2c3 100644 (file)
 
 [% PROCESS "global/field-descs.none.tmpl" %]
 
+[% title = BLOCK %]Enter [% terms.Bug %]: [% product.name FILTER html %][% END %]
+
 [% PROCESS global/header.html.tmpl
-  title = "Enter $terms.Bug: $product.name"
+  title = title
   style_urls = [ 'skins/standard/create_attachment.css' ]
   javascript_urls = [ "js/attachment.js" ]
 %]
index eb7457a7cebad050323cee3f5e5d94eee1f4caee..07b71c8fa8547365abf26651bc4b5e72d54a5d7d 100644 (file)
@@ -31,7 +31,7 @@
   [% filtered_desc = bug.short_desc FILTER html %]
   [% filtered_timestamp = bug.delta_ts FILTER time %]
   [% PROCESS global/header.html.tmpl
-    title = "$terms.Bug $bug.bug_id - $bug.short_desc"
+    title = "$terms.Bug $bug.bug_id - $filtered_desc"
     h1 = "$terms.Bug&nbsp;$bug.bug_id"
     h2 = filtered_desc
     h3 = "Last modified: $filtered_timestamp"
index c03704e72c17c901ea76130cd91acabfd52a9432..e80c758cd4f1b7978638d6f04bca8c83c98feba6 100644 (file)
   'javascript', 
   'style', 
   'onload',
+  'title',
   'h1',
   'h2',
   'h3', 
index c84f503d0b8b411b91dd8605a8f4c994ac51efd2..9b9420cedcc006f9407623ff767f1ef196977a36 100644 (file)
@@ -62,7 +62,7 @@
                       "http://www.w3.org/TR/html4/loose.dtd">
 <html>
   <head>
-    <title>[% title FILTER html %]</title>
+    <title>[% title %]</title>
 
 [%# Migration note: contents of the old Param 'headerhtml' would go here %]
 
index 72f79e2554820bd61adfbf7dc7a5a0a77da8cc64..f60f28558f62daf953198f5b33f2bbe497646794 100644 (file)
 [% PROCESS global/variables.none.tmpl %]
 
 [% IF query_products.size %]
-  [% title = "Most Frequently Reported $terms.Bugs for ${query_products.join(', ')}" %]
+  [% title = BLOCK %]
+    Most Frequently Reported [% terms.Bugs %] for [% query_products.join(', ') FILTER html %]
+  [% END %]
 [% ELSE %]
   [% title = "Most Frequently Reported $terms.Bugs" %]
 [% END%]
 
 [% PROCESS global/header.html.tmpl
+   title = title
    style = ".resolved { background-color: #d9d9d9; color: #000000; }"
 %]