From: lpsolit%gmail.com <> Date: Mon, 25 Apr 2005 05:18:09 +0000 (+0000) Subject: Bug 291473: Attaching a patch causes a software error in 2.18 - Patch by Frédéric... X-Git-Tag: bugzilla-2.18.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aae5c02925369ac6a6ca29d4eee3e84fac98c6ba;p=thirdparty%2Fbugzilla.git Bug 291473: Attaching a patch causes a software error in 2.18 - Patch by Frédéric Buclin r/a= justdave --- diff --git a/attachment.cgi b/attachment.cgi index 0450f3fd62..ccd55fce5c 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -951,9 +951,9 @@ sub insert # 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'}; + my $contenttypemethod = $::FORM{'contenttypemethod'} || ''; trick_taint($contenttypemethod); # Same Perl 5.6.0 hack as above - $contenttype = $::FORM{'contenttype'}; + $contenttype = $::FORM{'contenttype'} || ''; trick_taint($contenttype); # Same Perl 5.6.0 hack as above $vars->{'bugid'} = $bugid; $vars->{'attachid'} = $attachid;