From a5782052f5e288a75b567b97b2f264fd55ad6611 Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" <> Date: Fri, 31 Mar 2000 07:56:36 +0000 Subject: Fixed perl warning which occurs if $ENV{"CONTENT_TYPE"} is not set. --- CGI.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CGI.pl') diff --git a/CGI.pl b/CGI.pl index 8925afd67..6f31f604f 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 = ""; -- cgit v1.2.3-24-g4f1b