diff --git a/server_status_processes.php b/server_status_processes.php index c8c3f6003f..2533ac31eb 100644 --- a/server_status_processes.php +++ b/server_status_processes.php @@ -26,7 +26,8 @@ $response = PMA\libraries\Response::getInstance(); * on ajax request */ if ($response->isAjax() && !empty($_REQUEST['kill'])) { - $query = $GLOBALS['dbi']->getKillQuery((int)$_REQUEST['kill']); + $kill = intval($_REQUEST['kill']); + $query = $GLOBALS['dbi']->getKillQuery($kill); if ($GLOBALS['dbi']->tryQuery($query)) { $message = PMA\libraries\Message::success( __('Thread %s was successfully killed.') @@ -41,7 +42,7 @@ if ($response->isAjax() && !empty($_REQUEST['kill'])) { ); $response->setRequestStatus(false); } - $message->addParam($_REQUEST['kill']); + $message->addParam($kill); $response->addJSON('message', $message); } elseif ($response->isAjax() && !empty($_REQUEST['refresh'])) { // Only sends the process list table