\"'") then return "invalid hostname" end -- Return the original string if no special characters are found return str end -- Sanitize hostname hostname = sanitize_hostname(hostname) -- Variable to check if user is already authenticated is_authenticated = mg.request_info.is_authenticated ?> Pi-hole <?=hostname?>