From: dmose%mozilla.org <> Date: Fri, 31 Mar 2000 07:56:36 +0000 (+0000) Subject: Fixed perl warning which occurs if $ENV{"CONTENT_TYPE"} is not set. X-Git-Tag: bugzilla-2.12~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5782052f5e288a75b567b97b2f264fd55ad6611;p=thirdparty%2Fbugzilla.git Fixed perl warning which occurs if $ENV{"CONTENT_TYPE"} is not set. --- diff --git a/CGI.pl b/CGI.pl index 8925afd670..6f31f604fc 100644 --- a/CGI.pl +++ b/CGI.pl @@ -978,7 +978,7 @@ if (defined $ENV{"REQUEST_METHOD"}) { } ProcessFormFields $::buffer; } else { - if ($ENV{"CONTENT_TYPE"} =~ + if (exists($ENV{"CONTENT_TYPE"}) && $ENV{"CONTENT_TYPE"} =~ m@multipart/form-data; boundary=\s*([^; ]+)@) { ProcessMultipartFormFields($1); $::buffer = "";