mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Updated new models with santizeInput function to reduce clutter
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
$date = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['date'])));
|
||||
$source = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['source'])));
|
||||
$destination = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['destination'])));
|
||||
$date = sanitizeInput($_POST['date']);
|
||||
$source = sanitizeInput($_POST['source']);
|
||||
$destination = sanitizeInput($_POST['destination']);
|
||||
$miles = floatval($_POST['miles']);
|
||||
$roundtrip = intval($_POST['roundtrip']);
|
||||
$purpose = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['purpose'])));
|
||||
$purpose = sanitizeInput($_POST['purpose']);
|
||||
$user_id = intval($_POST['user']);
|
||||
$client_id = intval($_POST['client']);
|
||||
|
||||
Reference in New Issue
Block a user