From 447dc136caa6fadc7e8f1c3df40c962a7e1d99de Mon Sep 17 00:00:00 2001 From: Visman Date: Sat, 7 Jan 2017 18:39:37 +0700 Subject: [PATCH] Deleted POST from admin_permissions --- admin_permissions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin_permissions.php b/admin_permissions.php index 54bb9bd2..d9de164b 100644 --- a/admin_permissions.php +++ b/admin_permissions.php @@ -20,11 +20,13 @@ if ($pun_user['g_id'] != PUN_ADMIN) // Load the admin_permissions.php language file require PUN_ROOT.'lang/'.$admin_language.'/admin_permissions.php'; -if (isset($_POST['form_sent'])) +$request = $container->get('Request'); + +if ($request->isPost('form_sent')) { confirm_referrer('admin_permissions.php'); - $form = array_map('intval', $_POST['form']); + $form = array_map('intval', $request->post('form', array())); foreach ($form as $key => $input) {