diff --git a/public/main/admin/access_url_add_users_to_url.php b/public/main/admin/access_url_add_users_to_url.php index 5e2d3899f3c..9ea1d365007 100644 --- a/public/main/admin/access_url_add_users_to_url.php +++ b/public/main/admin/access_url_add_users_to_url.php @@ -46,7 +46,7 @@ Display::page_subheader2($tool_name); -if (!empty($_POST['form_sent'])) { +if (!empty($_POST['form_sent']) && Security::check_token('post')) { $form_sent = $_POST['form_sent']; $users = isset($_POST['user_list']) && is_array($_POST['user_list']) ? array_map('intval', $_POST['user_list']) : []; $url_list = isset($_POST['url_list']) && is_array($_POST['url_list']) ? $_POST['url_list'] : []; @@ -99,6 +99,7 @@