Update missing CSRF endpoint checks

This commit is contained in:
johnnyq
2026-07-24 13:16:51 -04:00
parent e7698f15bd
commit 91a1676e89
10 changed files with 38 additions and 5 deletions

View File

@@ -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']);