From: lpsolit%gmail.com <> Date: Mon, 8 Oct 2007 04:21:07 +0000 (+0000) Subject: Bug 264785: config.rdf needs XML filtering of output to generate valid HTML (Template... X-Git-Tag: bugzilla-3.0.3~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a440afc287df62aefe8faac32448dbf9b6c04dd;p=thirdparty%2Fbugzilla.git Bug 264785: config.rdf needs XML filtering of output to generate valid HTML (Template-Toolkit 2.15 and older do not escape all reserved characters correctly) - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/template/en/default/admin/components/confirm-delete.html.tmpl b/template/en/default/admin/components/confirm-delete.html.tmpl index 4ba73d08b8..7a09566f0d 100644 --- a/template/en/default/admin/components/confirm-delete.html.tmpl +++ b/template/en/default/admin/components/confirm-delete.html.tmpl @@ -74,7 +74,7 @@ Product Milestone URL: - + [% product.milestone_url FILTER html %] diff --git a/template/en/default/admin/products/confirm-delete.html.tmpl b/template/en/default/admin/products/confirm-delete.html.tmpl index 8e5fbb11f9..530b0ced40 100644 --- a/template/en/default/admin/products/confirm-delete.html.tmpl +++ b/template/en/default/admin/products/confirm-delete.html.tmpl @@ -90,7 +90,7 @@ Milestone URL: [% IF product.milestone_url %] - + [%- product.milestone_url FILTER html %] [% ELSE %] diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl index 20940d6636..db3144f6fb 100644 --- a/template/en/default/bug/dependency-tree.html.tmpl +++ b/template/en/default/bug/dependency-tree.html.tmpl @@ -144,10 +144,10 @@ [%+ bug.short_desc FILTER html %] [[% INCLUDE buginfo %]] - + title="See dependency tree for [% terms.bug %] [%+ bugid FILTER html %]"> [% END %] [% END %] diff --git a/template/en/default/config.rdf.tmpl b/template/en/default/config.rdf.tmpl index cd9a27ded0..36152cf0c2 100644 --- a/template/en/default/config.rdf.tmpl +++ b/template/en/default/config.rdf.tmpl @@ -118,13 +118,13 @@ [% FOREACH product = products %]
  • - + [% product.name FILTER html %] [% FOREACH component = product.components %] -
  • +
  • [% END %] @@ -132,7 +132,7 @@ [% FOREACH version = product.versions %] -
  • +
  • [% END %] @@ -141,7 +141,7 @@ [% FOREACH milestone = product.milestones %] -
  • +
  • [% END %] @@ -158,7 +158,7 @@ [% FOREACH product = products %] [% FOREACH component = product.components %]
  • - + [% component.name FILTER html %]
  • @@ -172,7 +172,7 @@ [% FOREACH product = products %] [% FOREACH version = product.versions %]
  • - + [% version.name FILTER html %]
  • @@ -187,7 +187,7 @@ [% FOREACH product = products %] [% FOREACH milestone = product.milestones %]
  • - + [% milestone.name FILTER html %]
  • @@ -202,7 +202,7 @@ [% PROCESS "global/field-descs.none.tmpl" %] [% FOREACH item = field %]
  • - + [% item.name FILTER html %] [% (field_descs.${item.name} OR item.description) FILTER html %] diff --git a/template/en/default/list/list.ics.tmpl b/template/en/default/list/list.ics.tmpl index 814a397aae..bc08d2f8ef 100644 --- a/template/en/default/list/list.ics.tmpl +++ b/template/en/default/list/list.ics.tmpl @@ -58,11 +58,11 @@ END:VCALENDAR [% END %] [% BLOCK ics_uid %] - [% "${bug_id}@${base_url}" FILTER uri FILTER ics('UID') %] + [% "${bug_id}@${base_url}" FILTER url_quote FILTER ics('UID') %] [% END %] [% BLOCK ics_url %] - [% "${base_url}show_bug.cgi?id=${bug_id}" FILTER uri FILTER ics('URL;VALUE=URI') %] + [% "${base_url}show_bug.cgi?id=${bug_id}" FILTER url_quote FILTER ics('URL;VALUE=URI') %] [% END %] [% BLOCK ics_dtstart %] diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index 32529f4cc8..df3346a933 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -120,13 +120,13 @@ [% "Unknown" IF NOT users.$userid %] - + Delete -