diff --git a/ajax.php b/ajax.php index 5f4fc8c22f..7f615a018c 100644 --- a/ajax.php +++ b/ajax.php @@ -27,19 +27,19 @@ switch ($_POST['type']) { break; case 'list-tables': Util::checkParameters(array('db'), true); - $response->addJSON('tables', $GLOBALS['dbi']->getTables($_REQUEST['db'])); + $response->addJSON('tables', $GLOBALS['dbi']->getTables($_POST['db'])); break; case 'list-columns': Util::checkParameters(array('db', 'table'), true); - $response->addJSON('columns', $GLOBALS['dbi']->getColumnNames($_REQUEST['db'], $_REQUEST['table'])); + $response->addJSON('columns', $GLOBALS['dbi']->getColumnNames($_POST['db'], $_POST['table'])); break; case 'config-get': Util::checkParameters(array('key'), true); - $response->addJSON('value', $GLOBALS['PMA_Config']->get($_REQUEST['key'])); + $response->addJSON('value', $GLOBALS['PMA_Config']->get($_POST['key'])); break; case 'config-set': Util::checkParameters(array('key', 'value'), true); - $result = $GLOBALS['PMA_Config']->setUserValue(null, $_REQUEST['key'], json_decode($_REQUEST['value'])); + $result = $GLOBALS['PMA_Config']->setUserValue(null, $_POST['key'], json_decode($_POST['value'])); if ($result !== true) { $response = Response::getInstance(); $response->setRequestStatus(false);