Skip to content

Commit

Permalink
Retrieve parameters from $_POST in user/Privileges pages
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj authored and MauricioFauth committed Nov 10, 2018
1 parent 2a74933 commit 35d87e6
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 136 deletions.
16 changes: 8 additions & 8 deletions libraries/classes/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,28 +161,28 @@ public function getSelfUrl()
'target' => $target
);
// needed for server privileges tabs
if (isset($_REQUEST['viewing_mode'])
&& in_array($_REQUEST['viewing_mode'], array('server', 'db', 'table'))
if (isset($_GET['viewing_mode'])
&& in_array($_GET['viewing_mode'], array('server', 'db', 'table'))
) {
$params['viewing_mode'] = $_REQUEST['viewing_mode'];
$params['viewing_mode'] = $_GET['viewing_mode'];
}
/*
* @todo coming from server_privileges.php, here $db is not set,
* add the following condition below when that is fixed
* && $_REQUEST['checkprivsdb'] == $db
* && $_GET['checkprivsdb'] == $db
*/
if (isset($_REQUEST['checkprivsdb'])
if (isset($_GET['checkprivsdb'])
) {
$params['checkprivsdb'] = $_REQUEST['checkprivsdb'];
$params['checkprivsdb'] = $_GET['checkprivsdb'];
}
/*
* @todo coming from server_privileges.php, here $table is not set,
* add the following condition below when that is fixed
* && $_REQUEST['checkprivstable'] == $table
*/
if (isset($_REQUEST['checkprivstable'])
if (isset($_GET['checkprivstable'])
) {
$params['checkprivstable'] = $_REQUEST['checkprivstable'];
$params['checkprivstable'] = $_GET['checkprivstable'];
}
if (isset($_REQUEST['single_table'])
&& in_array($_REQUEST['single_table'], array(true, false))
Expand Down
Loading

0 comments on commit 35d87e6

Please sign in to comment.