From 4d1c399ff6391b70e15a2c06d5bec10e2aaa3d3c Mon Sep 17 00:00:00 2001 From: Matt Selsky Date: Thu, 11 Dec 2014 18:00:18 +0000 Subject: Bug 1102842 - remove and/or unwhitelist unsafe filters. r=gerv, a=simon. --- template/en/default/account/prefs/prefs.html.tmpl | 2 +- template/en/default/attachment/list.html.tmpl | 10 +++++++++- template/en/default/attachment/show-multiple.html.tmpl | 10 +++++++++- template/en/default/bug/dependency-tree.html.tmpl | 6 +++++- template/en/default/list/change-columns.html.tmpl | 2 +- template/en/default/list/edit-multiple.html.tmpl | 12 +++++++++--- 6 files changed, 34 insertions(+), 8 deletions(-) (limited to 'template/en') diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl index 8f11d0a6f..33c0b4224 100644 --- a/template/en/default/account/prefs/prefs.html.tmpl +++ b/template/en/default/account/prefs/prefs.html.tmpl @@ -68,7 +68,7 @@ [% IF changes_saved %]
- The changes to your [% current_tab.label FILTER lower %] have been saved. + The changes to your [% current_tab.label FILTER lower FILTER html %] have been saved. [% IF email_changes_saved %]

diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index 4599f38ed..2e160eda7 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -70,7 +70,15 @@ function toggle_display(link) { [% END %] - [% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %] + + [% IF attachment.isobsolete %] + + [% END %] + [% attachment.description FILTER html %] + [% IF attachment.isobsolete %] + + [% END %] + [% "" IF attachment.datasize %] diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl index e2c95cb80..16d093372 100644 --- a/template/en/default/attachment/show-multiple.html.tmpl +++ b/template/en/default/attachment/show-multiple.html.tmpl @@ -34,7 +34,15 @@ Attachment #[% a.id %] - [% a.description FILTER html FILTER obsolete(a.isobsolete) %] + + [% IF a.isobsolete %] + + [% END %] + [% a.description FILTER html %] + [% IF a.isobsolete %] + + [% END %] + [% IF a.ispatch %] diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl index a2730f3c9..70855fdc2 100644 --- a/template/en/default/bug/dependency-tree.html.tmpl +++ b/template/en/default/bug/dependency-tree.html.tmpl @@ -136,7 +136,9 @@ [% BLOCK buglink %] [% isclosed = !bug.isopened %] - [% FILTER closed(isclosed) -%] + [% IF isclosed %] + + [% END %] [%- bugid %]: @@ -148,6 +150,8 @@ + [% IF isclosed %] + [% END %] [% END %] diff --git a/template/en/default/list/change-columns.html.tmpl b/template/en/default/list/change-columns.html.tmpl index c0279803c..aef352d0f 100644 --- a/template/en/default/list/change-columns.html.tmpl +++ b/template/en/default/list/change-columns.html.tmpl @@ -31,7 +31,7 @@ [% FOREACH column = columns.keys %] [% NEXT IF collist.contains(column) %] [%# We lowecase the keys so that the sort happens case-insensitively. %] - [% SET column_desc = field_descs.$column || column FILTER lower %] + [% SET column_desc = field_descs.$column || column FILTER lower FILTER html %] [% available_columns.$column_desc = column %] [% END %] diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index e581f0892..d956fa62b 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -371,7 +371,13 @@ [% SET inactive = !group.is_active %] - [% group.description FILTER html_light FILTER inactive(inactive) %] + [% IF inactive %] + + [% END %] + [% group.description FILTER html_light %] + [% IF inactive %] + + [% END %] @@ -380,8 +386,8 @@ [% IF foundinactive %] -

(Note: [% terms.Bugs %] may not be added to [% FILTER inactive %]inactive - groups[% END %], only removed.)

+

(Note: [% terms.Bugs %] may not be added to inactive + groups, only removed.)

[% END %] [% END %] -- cgit v1.2.3-24-g4f1b