Commit 2c8316b9 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 407402: Make Bugzilla die when data/params doesn't exist, if we're in a CGI.

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat
parent 47d78d46
......@@ -318,6 +318,17 @@ sub read_param_file {
# Now read the param back out from the sandbox
%params = %{$s->varglob('param')};
}
elsif ($ENV{'SERVER_SOFTWARE'}) {
# We're in a CGI, but the params file doesn't exist. We can't
# Template Toolkit, or even install_string, since checksetup
# might not have thrown an error. Bugzilla::CGI->new
# hasn't even been called yet, so we manually use CGI::Carp here
# so that the user sees the error.
require CGI::Carp;
CGI::Carp->import('fatalsToBrowser');
die "The $datadir/params file does not exist."
. ' You probably need to run checksetup.pl.',
}
return \%params;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment