From aae5c02925369ac6a6ca29d4eee3e84fac98c6ba Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 25 Apr 2005 05:18:09 +0000 Subject: [PATCH] =?utf8?q?Bug=20291473:=20Attaching=20a=20patch=20causes?= =?utf8?q?=20a=20software=20error=20in=202.18=20-=20Patch=20by=20Fr=C3=A9d?= =?utf8?q?=C3=A9ric=20Buclin=20=20r/a=3D=20justdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2