mirror of
https://github.com/itflow-org/itflow
synced 2026-07-25 17:57:14 +00:00
Update missing CSRF endpoint checks
This commit is contained in:
@@ -8,6 +8,8 @@ defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||
|
||||
if(isset($_POST['create_custom_field'])){
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
|
||||
require_once 'custom_field_model.php';
|
||||
|
||||
$table = escapeSql($_POST['table']);
|
||||
@@ -26,6 +28,8 @@ if(isset($_POST['create_custom_field'])){
|
||||
|
||||
if(isset($_POST['edit_custom_field'])){
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
|
||||
require_once 'custom_field_model.php';
|
||||
|
||||
$custom_field_id = intval($_POST['custom_field_id']);
|
||||
@@ -40,7 +44,9 @@ if(isset($_POST['edit_custom_field'])){
|
||||
|
||||
}
|
||||
|
||||
if(isset($_GET['delete_custom_field'])){
|
||||
if(isset($_GET['delete_custom_field'])) {
|
||||
|
||||
validateCSRFToken($_GET['csrf_token']);
|
||||
|
||||
$custom_field_id = intval($_GET['delete_custom_field']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user