mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Enforce CSRF for post/asset and post/account
Tiny bit of tidying
This commit is contained in:
@@ -8,7 +8,6 @@ if(isset($_POST['create_custom_field'])){
|
||||
|
||||
require_once 'post/custom_field_model.php';
|
||||
|
||||
|
||||
$table = sanitizeInput($_POST['table']);
|
||||
|
||||
mysqli_query($mysqli,"INSERT INTO custom_fields SET custom_field_table = '$table', custom_field_label = '$label', custom_field_type = '$type'");
|
||||
@@ -26,7 +25,6 @@ if(isset($_POST['edit_custom_field'])){
|
||||
|
||||
require_once 'post/custom_field_model.php';
|
||||
|
||||
|
||||
$custom_field_id = intval($_POST['custom_field_id']);
|
||||
|
||||
mysqli_query($mysqli,"UPDATE custom_fields SET custom_field_label = '$label', custom_field_type = '$type' WHERE custom_field_id = $custom_field_id");
|
||||
|
||||
Reference in New Issue
Block a user