mirror of https://github.com/itflow-org/itflow
Fix injection with role id affecting authenticated admin accounts only
This commit is contained in:
parent
e8af173b4f
commit
b4e5e3fda7
|
|
@ -30,7 +30,7 @@ if (isset($_POST['edit_role'])) {
|
||||||
|
|
||||||
validateCSRFToken($_POST['csrf_token']);
|
validateCSRFToken($_POST['csrf_token']);
|
||||||
|
|
||||||
$role_id = sanitizeInput($_POST['role_id']);
|
$role_id = intval($_POST['role_id']);
|
||||||
$name = sanitizeInput($_POST['role_name']);
|
$name = sanitizeInput($_POST['role_name']);
|
||||||
$description = sanitizeInput($_POST['role_description']);
|
$description = sanitizeInput($_POST['role_description']);
|
||||||
$admin = intval($_POST['role_is_admin']);
|
$admin = intval($_POST['role_is_admin']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue