From f5a987b91fe6045ccfcd73154b62f5b5ce1882e2 Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Wed, 24 Aug 2016 18:15:39 -0300 Subject: [PATCH] Update install.php Verify if server has SERVER_SOFTWARE defined. If the variable isn't defined it still doesn't make sense to ask for the .htaccess as it definitively isn't Apache or LiteSpeed (or is a very strange self compiled version of those softwares). --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 6b7be3fe..7e9553bd 100644 --- a/install.php +++ b/install.php @@ -190,7 +190,7 @@ function checkSystem() $phpModules = get_loaded_extensions(); } - if ((stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) && !file_exists(PATH_ROOT.'.htaccess')) { + if (array_key_exists('SERVER_SOFTWARE', $_SERVER) && ((stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || stripos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false) && !file_exists(PATH_ROOT.'.htaccess'))) { $errorText = 'Missing file, upload the file .htaccess (ERR_201)'; error_log($errorText, 0);