mirror of
https://github.com/itflow-org/itflow
synced 2026-07-23 08:50:42 +00:00
Replace Function sanitizeInput() with just escapeSql() and update all instances throughout
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||
|
||||
$name = sanitizeInput($_POST['name']);
|
||||
$description = sanitizeInput($_POST['description']);
|
||||
$name = escapeSql($_POST['name']);
|
||||
$description = escapeSql($_POST['description']);
|
||||
$vlan = intval($_POST['vlan']);
|
||||
$network = sanitizeInput($_POST['network']);
|
||||
$gateway = sanitizeInput($_POST['gateway']);
|
||||
$primary_dns = sanitizeInput($_POST['primary_dns']);
|
||||
$secondary_dns = sanitizeInput($_POST['secondary_dns']);
|
||||
$dhcp_range = sanitizeInput($_POST['dhcp_range']);
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$network = escapeSql($_POST['network']);
|
||||
$gateway = escapeSql($_POST['gateway']);
|
||||
$primary_dns = escapeSql($_POST['primary_dns']);
|
||||
$secondary_dns = escapeSql($_POST['secondary_dns']);
|
||||
$dhcp_range = escapeSql($_POST['dhcp_range']);
|
||||
$notes = escapeSql($_POST['notes']);
|
||||
$location_id = intval($_POST['location'] ?? 0);
|
||||
|
||||
Reference in New Issue
Block a user