Skip to content
Permalink
Browse files

Retrieve parameters from $_POST in mult_submits.inc.php

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information...
madhuracj authored and mauriciofauth committed Jul 22, 2018
1 parent 80eaee9 commit 259cbc6ab1d61afb3a657ad4a787eefe8278ec29
Showing with 6 additions and 6 deletions.
  1. +6 −6 libraries/mult_submits.inc.php
@@ -37,8 +37,8 @@
);
foreach ($request_params as $one_request_param) {
if (isset($_REQUEST[$one_request_param])) {
$GLOBALS[$one_request_param] = $_REQUEST[$one_request_param];
if (isset($_POST[$one_request_param])) {
$GLOBALS[$one_request_param] = $_POST[$one_request_param];
}
}
$response = Response::getInstance();
@@ -55,16 +55,16 @@
*/
if (! empty($submit_mult)
&& $submit_mult != __('With selected:')
&& (! empty($_REQUEST['selected_dbs'])
&& (! empty($_POST['selected_dbs'])
|| ! empty($_POST['selected_tbl'])
|| ! empty($selected_fld)
|| ! empty($_REQUEST['rows_to_delete']))
|| ! empty($_POST['rows_to_delete']))
) {
define('PMA_SUBMIT_MULT', 1);
if (! empty($_REQUEST['selected_dbs'])) {
if (! empty($_POST['selected_dbs'])) {
// coming from server database view - do something with
// selected databases
$selected = $_REQUEST['selected_dbs'];
$selected = $_POST['selected_dbs'];
$query_type = 'drop_db';
} elseif (! empty($_POST['selected_tbl'])) {
// coming from database structure view - do something with

0 comments on commit 259cbc6

Please sign in to comment.
You can’t perform that action at this time.