Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
2c8316b9
Commit
2c8316b9
authored
Jan 18, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Config.pm
Bugzilla/Config.pm
+11
-0
No files found.
Bugzilla/Config.pm
View file @
2c8316b9
...
@@ -318,6 +318,17 @@ sub read_param_file {
...
@@ -318,6 +318,17 @@ sub read_param_file {
# Now read the param back out from the sandbox
# Now read the param back out from the sandbox
%
params
=
%
{
$s
->
varglob
(
'param'
)};
%
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
;
return
\%
params
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment