Skip to content
Permalink
Browse files

Retrieve parameters from $_POST in user/Privileges pages

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information...
madhuracj authored and mauriciofauth committed Jul 22, 2018
1 parent 2a74933 commit 35d87e607227c4ea0d1613ad39c5bca75b726fca
Showing with 139 additions and 136 deletions.
  1. +8 −8 libraries/classes/Footer.php
  2. +69 −65 libraries/classes/Server/Privileges.php
  3. +30 −31 server_privileges.php
  4. +32 −32 test/classes/Server/PrivilegesTest.php
@@ -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))

0 comments on commit 35d87e6

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