Replace Function sanitizeInput() with just escapeSql() and update all instances throughout

This commit is contained in:
johnnyq
2026-07-14 17:17:50 -04:00
parent 7bc47a58fe
commit b57ddc0e5c
148 changed files with 1945 additions and 1945 deletions

View File

@@ -1,11 +1,11 @@
<?php
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
$name = sanitizeInput($_POST['name']);
$description = sanitizeInput($_POST['description']);
$domain = sanitizeInput($_POST['domain']);
$issued_by = sanitizeInput($_POST['issued_by']);
$expire = sanitizeInput($_POST['expire']);
$public_key = sanitizeInput($_POST['public_key']);
$notes = sanitizeInput($_POST['notes']);
$name = escapeSql($_POST['name']);
$description = escapeSql($_POST['description']);
$domain = escapeSql($_POST['domain']);
$issued_by = escapeSql($_POST['issued_by']);
$expire = escapeSql($_POST['expire']);
$public_key = escapeSql($_POST['public_key']);
$notes = escapeSql($_POST['notes']);
$domain_id = intval($_POST['domain_id'] ?? 0);