mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Updated new models with santizeInput function to reduce clutter
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$name = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['name'])));
|
||||
$type = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['type'])));
|
||||
$website = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['website'])));
|
||||
$referral = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['referral'])));
|
||||
$currency_code = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['currency_code'])));
|
||||
$name = sanitizeInput($_POST['name']);
|
||||
$type = sanitizeInput($_POST['type']);
|
||||
$website = sanitizeInput($_POST['website']);
|
||||
$referral = sanitizeInput($_POST['referral']);
|
||||
$currency_code = sanitizeInput($_POST['currency_code']);
|
||||
$net_terms = intval($_POST['net_terms']);
|
||||
$notes = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['notes'])));
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
|
||||
Reference in New Issue
Block a user