mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
POST input deduplication/'models'
- Ongoing deduplication/conversion of post.php to use re-usable 'models' for input - Also converting file upload checks to use a function instead
This commit is contained in:
4
models/category.php
Normal file
4
models/category.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
$name = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['name'])));
|
||||
$type = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['type'])));
|
||||
$color = trim(strip_tags(mysqli_real_escape_string($mysqli, $_POST['color'])));
|
||||
Reference in New Issue
Block a user