~ubuntu-branches/ubuntu/edgy/bugzilla/edgy

« back to all changes in this revision

Viewing changes to template/en/default/global/hidden-fields.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2005-10-03 16:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051003165101-38n0y5qofd68vole
Tags: 2.18.4-1
* New upstream minor release
  + Fixed a security issue: It was possible to bypass the "user
    visibility groups" restrictions if user-matching was turned on
    in "substring" mode.
  + Fixed a security issue: config.cgi exposed information to users who
    weren't logged in, even when "requirelogin" was turned on in Bugzilla.
  (closes: #331206)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- 1.0@bugzilla.org -->
 
1
[%# 1.0@bugzilla.org %]
2
2
[%# The contents of this file are subject to the Mozilla Public
3
3
  # License Version 1.1 (the "License"); you may not use this file
4
4
  # except in compliance with the License. You may obtain a copy of
26
26
  # exclude: string; a regular expression matching fields to exclude
27
27
  #   from the list of hidden fields generated by this template
28
28
  #%]
29
 
 
 
29
 
30
30
[%# Generate hidden form fields for non-excluded fields. %]
31
31
[% FOREACH field = form %]
32
32
  [% NEXT IF exclude && field.key.search(exclude) %]
33
 
  [% IF mform.${field.key}.size > 1 %]
 
33
  [% IF mform.${field.key} && mform.${field.key}.size > 1 %]
34
34
    [% FOREACH mvalue = mform.${field.key} %]
35
35
      <input type="hidden" name="[% field.key FILTER html %]"
36
 
             value="[% mvalue | html | html_linebreak %]">
 
36
             value="[% mvalue FILTER html FILTER html_linebreak %]">
37
37
    [% END %]
38
38
  [% ELSE %]
39
39
    <input type="hidden" name="[% field.key FILTER html %]"
40
 
           value="[% field.value | html | html_linebreak %]">
 
40
           value="[% field.value FILTER html FILTER html_linebreak %]">
41
41
  [% END %]
42
42
[% END %]