mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Updated new models with santizeInput function to reduce clutter
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$date = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['date'])));
|
||||
$date = sanitizeInput($_POST['date']);
|
||||
$amount = floatval($_POST['amount']);
|
||||
$account = intval($_POST['account']);
|
||||
$vendor = intval($_POST['vendor']);
|
||||
$category = intval($_POST['category']);
|
||||
$description = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['description'])));
|
||||
$reference = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['reference'])));
|
||||
$description = sanitizeInput($_POST['description']);
|
||||
$reference = sanitizeInput($_POST['reference']);
|
||||
|
||||
Reference in New Issue
Block a user