From 4d55f265b801efb52ea49abe3fcdc9c34c4763c2 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 11 Oct 2010 18:56:19 +0200 Subject: Bug 550097: checksetup.pl should detect when run via a web server (cgi) and fail with a sane error r/a=mkanat --- checksetup.pl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'checksetup.pl') 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(); -- cgit v1.2.3-24-g4f1b