From 214c817c35217b4394311804c513083c1fed6303 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 17 Jul 2024 23:53:14 +0200 Subject: [PATCH] Admin: Add variable validation before processing form in users to URL assignment --- public/main/admin/access_url_add_users_to_url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1a84a30672..25030c1d3a 100644 --- a/public/main/admin/access_url_add_users_to_url.php +++ b/public/main/admin/access_url_add_users_to_url.php @@ -45,7 +45,7 @@ echo Display::toolbarAction( Display::page_subheader2($tool_name); -if ($_POST['form_sent']) { +if (!empty($_POST['form_sent'])) { $form_sent = $_POST['form_sent']; $users = is_array($_POST['user_list']) ? array_map('intval', $_POST['user_list']) : []; $url_list = is_array($_POST['url_list']) ? $_POST['url_list'] : [];