diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-14 21:03:00 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-14 21:03:00 +0200 |
commit | 90d86a9744883ccc120a0a955ffade72990e1505 (patch) | |
tree | 07fd038fc41a2de0259f2f7c6a9de0d55e8a1e34 /post_bug.cgi | |
parent | ae22da8710d00232d28b7c6b9093d2b7e33b0627 (diff) | |
download | bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.gz bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.xz |
Bug 1088022 - Bump min version to CGI 4.09
r=dkl
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-x | post_bug.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/post_bug.cgi b/post_bug.cgi index 17d0fe4ea..712d765d8 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -44,7 +44,7 @@ unless ($cgi->param()) { } # Detect if the user already used the same form to submit a bug -my $token = trim($cgi->param('token')); +my $token = trim(scalar $cgi->param('token')); check_token_data($token, 'create_bug', 'index.cgi'); # do a match on the fields if applicable @@ -112,7 +112,7 @@ foreach my $field (@bug_fields) { } foreach my $field (qw(cc groups)) { next if !$cgi->should_set($field); - $bug_params{$field} = [$cgi->param($field)]; + $bug_params{$field} = [$cgi->multi_param($field)]; } $bug_params{'comment'} = $comment; $bug_params{'is_markdown'} = $cgi->param('use_markdown'); @@ -122,7 +122,7 @@ my @multi_selects = grep {$_->type == FIELD_TYPE_MULTI_SELECT && $_->enter_bug} foreach my $field (@multi_selects) { next if !$cgi->should_set($field->name); - $bug_params{$field->name} = [$cgi->param($field->name)]; + $bug_params{$field->name} = [$cgi->multi_param($field->name)]; } @@ -165,7 +165,7 @@ my $data_fh = $cgi->upload('data'); my $attach_text = $cgi->param('attach_text'); if ($data_fh || $attach_text) { - $cgi->param('isprivate', $cgi->param('comment_is_private')); + $cgi->param('isprivate', scalar $cgi->param('comment_is_private')); # Must be called before create() as it may alter $cgi->param('ispatch'). my $content_type = Bugzilla::Attachment::get_content_type(); |