summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordmose%mozilla.org <>2000-03-31 09:56:36 +0200
committerdmose%mozilla.org <>2000-03-31 09:56:36 +0200
commita5782052f5e288a75b567b97b2f264fd55ad6611 (patch)
tree205d56efbb5a2effb088906e0824aa2c111778d9
parentae2fc61bacb96a91978cc72fd860a5b6beb33903 (diff)
downloadbugzilla-a5782052f5e288a75b567b97b2f264fd55ad6611.tar.gz
bugzilla-a5782052f5e288a75b567b97b2f264fd55ad6611.tar.xz
Fixed perl warning which occurs if $ENV{"CONTENT_TYPE"} is not set.
-rw-r--r--CGI.pl2
1 files changed, 1 insertions, 1 deletions
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 = "";