]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1390112 - Option for filing security bugs
authorSebastin Santy <sebastinssanty@gmail.com>
Wed, 16 Aug 2017 04:01:44 +0000 (09:31 +0530)
committerDylan William Hardison <dylan@hardison.net>
Wed, 16 Aug 2017 04:01:44 +0000 (00:01 -0400)
new_bug.cgi
template/en/default/bug/new_bug.html.tmpl

index 6a62d0dcb45030136dd6ec806ee152bb9e4b61aa..6a49e0b68e3a3d7e8261dc8366099243004b6859 100644 (file)
@@ -57,12 +57,13 @@ if (lc($cgi->request_method) eq 'post') {
      my $token = $cgi->param('token');
      check_hash_token($token, ['new_bug']);
      my @keywords = $cgi->param('keywords');
+     my @groups = $cgi->param('groups');
      my $new_bug = Bugzilla::Bug->create({
                 short_desc   => scalar($cgi->param('short_desc')),
                 product      => scalar($cgi->param('product')),
                 component    => scalar($cgi->param('component')),
                 bug_severity => 'normal',
-                groups       => [],
+                groups       => \@groups,
                 op_sys       => 'Unspecified',
                 rep_platform => 'Unspecified',
                 version      => scalar( $cgi->param('version')),
index 7608d156bffba85c108397c7e8b245aa50869940..d064398c591d1cb4da463c305ef8f8c1e950d00b 100644 (file)
@@ -54,6 +54,8 @@
           %]
 
           [% INCLUDE bug_modal/common_new_comment.html.tmpl disable_cols=1 %]
+          <input name="groups" value="core-security" id="group_core-security" type="checkbox"> Many users could be harmed by this security problem: 
+          it should be kept hidden from the public until it is resolved <br>
           [% END %]
           [% WRAPPER bug_modal/module.html.tmpl title = "Attach a File" collapsed = 1 %]
           <div class="file-container">