# for Perl 5.6.0. If we ever require Perl 5.6.1 or
# newer, or detaint something other than $::FORM{'bugid'}
# in ValidateBugID above, then this can go away.
+ my $contenttypemethod = $::FORM{'contenttypemethod'};
+ trick_taint($contenttypemethod); # Same Perl 5.6.0 hack as above
+ $contenttype = $::FORM{'contenttype'};
+ trick_taint($contenttype); # Same Perl 5.6.0 hack as above
$vars->{'bugid'} = $bugid;
$vars->{'attachid'} = $attachid;
$vars->{'description'} = $description;
- $vars->{'contenttypemethod'} = $::FORM{'contenttypemethod'};
- $vars->{'contenttype'} = $::FORM{'contenttype'};
+ $vars->{'contenttypemethod'} = $contenttypemethod;
+ $vars->{'contenttype'} = $contenttype;
print Bugzilla->cgi->header();