]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1425119 - Release new-bug interface
authorSebastin Santy <sebastinssanty@gmail.com>
Fri, 15 Dec 2017 16:47:42 +0000 (10:47 -0600)
committerDylan William Hardison <dylan@hardison.net>
Fri, 15 Dec 2017 16:47:42 +0000 (10:47 -0600)
new_bug.cgi

index 4429717c18d1d5c9ec4dc754b276f33a6afb6a25..0949f369621841f3171af48fc8abaac7a6dc567d 100644 (file)
@@ -47,19 +47,13 @@ my $template = Bugzilla->template;
 my $vars     = {};
 my $dbh      = Bugzilla->dbh;
 
-
-unless ($user->in_group('new-bug-testers')) {
-    print $cgi->redirect(correct_urlbase());
-    exit;
-}
-
 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 @cc = split /, /, $cgi->param('cc');
-     my @bug_mentor = split /, /, $cgi->param('bug_mentor');
+     my @cc = split  /\s*,\s*/, $cgi->param('cc');
+     my @bug_mentor = split  /\s*,\s*/, $cgi->param('bug_mentor');
      my $new_bug = Bugzilla::Bug->create({
                 short_desc   => scalar($cgi->param('short_desc')),
                 product      => scalar($cgi->param('product')),