From 9b77bbdd0bc30a23123d3d8b081213e765e9478a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 22 May 2026 11:26:20 -0400 Subject: [PATCH] declare intval --- agent/post/software.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/post/software.php b/agent/post/software.php index db082abd..1552d423 100644 --- a/agent/post/software.php +++ b/agent/post/software.php @@ -27,7 +27,7 @@ if (isset($_POST['add_software_from_template'])) { $type = sanitizeInput($row['software_template_type']); $license_type = sanitizeInput($row['software_template_license_type']); $notes = sanitizeInput($row['software_template_notes']); - $vendor = sanitizeInput($_POST['vendor'] ?? 0); + $vendor = intval($_POST['vendor'] ?? 0); // Software add query mysqli_query($mysqli,"INSERT INTO software SET software_name = '$name', software_version = '$version', software_description = '$description', software_type = '$type', software_license_type = '$license_type', software_notes = '$notes', software_vendor_id = $vendor, software_client_id = $client_id");