mirror of
https://github.com/itflow-org/itflow
synced 2026-09-19 05:05:13 +00:00
Feature: Added network IPs section to document network IP and their hostnames
This commit is contained in:
9
agent/post/network_ip_model.php
Normal file
9
agent/post/network_ip_model.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
||||
|
||||
// $ip_address is deliberately NOT escaped here - checkIpForNetwork() in
|
||||
// functions/network.php normalises it first and the handler escapes the
|
||||
// canonical form it hands back.
|
||||
$ip_address = trim($_POST['ip_address'] ?? '');
|
||||
$hostname = escapeSql($_POST['hostname'] ?? '');
|
||||
$description = escapeSql($_POST['description'] ?? '');
|
||||
Reference in New Issue
Block a user