diff options
author | Simon Green <sgreen@redhat.com> | 2014-10-06 17:01:03 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-10-06 17:01:03 +0200 |
commit | 0ec036b02e033a63deacd9a7ca8af7c77394c45f (patch) | |
tree | 17eb0d358dcad3dd0327438b104872e2bcc39695 /template | |
parent | 976dc12e4ed769bc02ffeb2be03bb1720e885135 (diff) | |
download | bugzilla-0ec036b02e033a63deacd9a7ca8af7c77394c45f.tar.gz bugzilla-0ec036b02e033a63deacd9a7ca8af7c77394c45f.tar.xz |
Bug 1054702: CSV export vulnerable to formulae injection
r=glob,a=glob
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/reports/report-table.csv.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/template/en/default/reports/report-table.csv.tmpl b/template/en/default/reports/report-table.csv.tmpl index 4d8b50a85..c978cf981 100644 --- a/template/en/default/reports/report-table.csv.tmpl +++ b/template/en/default/reports/report-table.csv.tmpl @@ -39,11 +39,13 @@ [% END %] [% tbl_field_disp FILTER csv %]: [% tbl_disp FILTER csv %] [% END %] -[% IF row_field %] +[% IF row_field && col_field %] + [% row_field_disp _ ' / ' _ col_field_disp FILTER csv %] +[% ELSIF row_field %] [% row_field_disp FILTER csv %] +[% ELSE %] + [% col_field_disp FILTER csv %] [% END %] -[% " / " IF col_field AND row_field %] -[% col_field_disp FILTER csv %] [% IF col_field -%] [% FOREACH col = col_names -%] [% colsepchar %] |