diff options
author | Michal Čihař <michal@cihar.com> | 2016-06-16 14:07:13 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-06-16 14:07:13 +0300 |
commit | 5b05665ff07d5af0dcd1d195711448202d0add7b (patch) | |
tree | 535cae1a0a8127e6ae7839fb7539d2792429d8e7 /server_status_processes.php | |
parent | 53cc34b374ffe7aefab514dc77042d89596705e7 (diff) |
Ensure kill ID is integer
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'server_status_processes.php')
-rw-r--r-- | server_status_processes.php | 5 |
1 files changed, 3 insertions, 2 deletions
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 |