summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-10-11 18:56:19 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-11 18:56:19 +0200
commit4d55f265b801efb52ea49abe3fcdc9c34c4763c2 (patch)
tree55fd684fc6db416e794a0bd917ab542aed9a1e41 /checksetup.pl
parent6b3849980cdc1fbb402b4894336d9050aa624059 (diff)
downloadbugzilla-4d55f265b801efb52ea49abe3fcdc9c34c4763c2.tar.gz
bugzilla-4d55f265b801efb52ea49abe3fcdc9c34c4763c2.tar.xz
Bug 550097: checksetup.pl should detect when run via a web server (cgi) and fail with a sane error
r/a=mkanat
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index b6b4fc19c..6d9230dd9 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -60,6 +60,9 @@ use Bugzilla::Install::Util qw(install_string get_version_and_os
# Live Code
######################################################################
+# Do not run checksetup.pl from the web browser.
+Bugzilla::Install::Util::no_checksetup_from_cgi() if $ENV{'SERVER_SOFTWARE'};
+
# When we're running at the command line, we need to pick the right
# language before ever displaying any string.
init_console();