diff --git a/js/server_status_processes.js b/js/server_status_processes.js index 928c10b328..2865bca9a7 100644 --- a/js/server_status_processes.js +++ b/js/server_status_processes.js @@ -47,10 +47,12 @@ var processList = { */ killProcessHandler: function (event) { event.preventDefault(); - var url = $(this).attr('href'); + var argSep = PMA_commonParams.get('arg_separator'); + var params = $(this).getPostData(); + params += argSep + 'ajax_request=1' + argSep + 'server=' + PMA_commonParams.get('server'); // Get row element of the process to be killed. var $tr = $(this).closest('tr'); - $.getJSON(url, function (data) { + $.post($(this).attr('href'), params, function (data) { // Check if process was killed or not. if (data.hasOwnProperty('success') && data.success) { // remove the row of killed process. @@ -66,7 +68,7 @@ var processList = { // Show process error message PMA_ajaxShowMessage(data.error, false); } - }); + }, 'json'); }, /** @@ -86,7 +88,7 @@ var processList = { if (processList.autoRefresh) { var interval = parseInt(processList.refreshInterval, 10) * 1000; var urlParams = processList.getUrlParams(); - processList.refreshRequest = $.get(processList.refreshUrl, + processList.refreshRequest = $.post(processList.refreshUrl, urlParams, function (data) { if (data.hasOwnProperty('success') && data.success) { diff --git a/libraries/classes/Server/Status/Processes.php b/libraries/classes/Server/Status/Processes.php index 5eb5fa1190..2df3587318 100644 --- a/libraries/classes/Server/Status/Processes.php +++ b/libraries/classes/Server/Status/Processes.php @@ -58,7 +58,7 @@ class Processes { $url_params = array(); - $show_full_sql = ! empty($_REQUEST['full']); + $show_full_sql = ! empty($_POST['full']); if ($show_full_sql) { $url_params['full'] = 1; $full_text_link = 'server_status_processes.php' . Url::getCommon( @@ -115,19 +115,19 @@ class Processes $sql_query = $show_full_sql ? 'SHOW FULL PROCESSLIST' : 'SHOW PROCESSLIST'; - if ((! empty($_REQUEST['order_by_field']) - && ! empty($_REQUEST['sort_order'])) - || (! empty($_REQUEST['showExecuting'])) + if ((! empty($_POST['order_by_field']) + && ! empty($_POST['sort_order'])) + || (! empty($_POST['showExecuting'])) ) { $sql_query = 'SELECT * FROM `INFORMATION_SCHEMA`.`PROCESSLIST` '; } - if (! empty($_REQUEST['showExecuting'])) { + if (! empty($_POST['showExecuting'])) { $sql_query .= ' WHERE state != "" '; } - if (!empty($_REQUEST['order_by_field']) && !empty($_REQUEST['sort_order'])) { + if (!empty($_POST['order_by_field']) && !empty($_POST['sort_order'])) { $sql_query .= ' ORDER BY ' - . Util::backquote($_REQUEST['order_by_field']) - . ' ' . $_REQUEST['sort_order']; + . Util::backquote($_POST['order_by_field']) + . ' ' . $_POST['sort_order']; } $result = $GLOBALS['dbi']->query($sql_query); @@ -140,15 +140,15 @@ class Processes $retval .= '