From aca6ce6e55461e154ad16b3e5a424d0f35279947 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Sat, 12 Sep 2015 00:30:56 +0530 Subject: [PATCH] --CRM-16801, Replaced $_REQUEST with $_POST --- install/index.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/install/index.php b/install/index.php index 354fc51cd7..8f8303dff0 100644 --- a/install/index.php +++ b/install/index.php @@ -76,8 +76,8 @@ require_once $crmPath . '/CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register(); // Load civicrm database config -if (isset($_REQUEST['mysql'])) { - $databaseConfig = $_REQUEST['mysql']; +if (isset($_POST['mysql'])) { + $databaseConfig = $_POST['mysql']; } else { $databaseConfig = array( @@ -90,8 +90,8 @@ else { if ($installType == 'drupal') { // Load drupal database config - if (isset($_REQUEST['drupal'])) { - $drupalConfig = $_REQUEST['drupal']; + if (isset($_POST['drupal'])) { + $drupalConfig = $_POST['drupal']; } else { $drupalConfig = array( @@ -104,7 +104,7 @@ if ($installType == 'drupal') { } $loadGenerated = 0; -if (isset($_REQUEST['loadGenerated'])) { +if (isset($_POST['loadGenerated'])) { $loadGenerated = 1; } @@ -134,9 +134,9 @@ global $tsLocale; $tsLocale = 'en_US'; $seedLanguage = 'en_US'; -if (isset($_REQUEST['seedLanguage']) and isset($langs[$_REQUEST['seedLanguage']])) { - $seedLanguage = $_REQUEST['seedLanguage']; - $tsLocale = $_REQUEST['seedLanguage']; +if (isset($_POST['seedLanguage']) and isset($langs[$_POST['seedLanguage']])) { + $seedLanguage = $_POST['seedLanguage']; + $tsLocale = $_POST['seedLanguage']; } $config = CRM_Core_Config::singleton(FALSE); @@ -261,14 +261,14 @@ if ($databaseConfig) { } // Actual processor -if (isset($_REQUEST['go']) && !$req->hasErrors() && !$dbReq->hasErrors()) { +if (isset($_POST['go']) && !$req->hasErrors() && !$dbReq->hasErrors()) { // Confirm before reinstalling - if (!isset($_REQUEST['force_reinstall']) && $alreadyInstalled) { + if (!isset($_POST['force_reinstall']) && $alreadyInstalled) { include $installDirPath . 'template.html'; } else { $inst = new Installer(); - $inst->install($_REQUEST); + $inst->install($_POST); } // Show the config form -- 2.25.1