From 0d263fccdb4b9905fc12b21484e7419756c79f74 Mon Sep 17 00:00:00 2001 From: cproudlock Date: Fri, 12 Dec 2025 10:03:33 -0500 Subject: [PATCH] Fix printerlookup.asp: Add Dim objConn,rs for Option Explicit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Option Explicit requires all variables to be declared. objConn and rs are created in sql.asp but need to be pre-declared in the calling page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- printerlookup.asp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/printerlookup.asp b/printerlookup.asp index ab77df2..9d780b0 100644 --- a/printerlookup.asp +++ b/printerlookup.asp @@ -2,12 +2,13 @@ <% Option Explicit Response.Buffer = True +Dim objConn, rs %> <% ' Lookup printer by IP address or FQDN and redirect to displayprinter.asp ' Used by Zabbix to link directly to printer details -Dim ip, fqdn, lookupValue, cmd, rs +Dim ip, fqdn, lookupValue, cmd ip = Trim(Request.QueryString("ip") & "") fqdn = Trim(Request.QueryString("fqdn") & "")