Fix printerlookup.asp: Add Dim objConn,rs for Option Explicit

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 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2025-12-12 10:03:33 -05:00
parent 0f859cbda7
commit 0d263fccdb

View File

@@ -2,12 +2,13 @@
<% <%
Option Explicit Option Explicit
Response.Buffer = True Response.Buffer = True
Dim objConn, rs
%> %>
<!--#include file="includes/sql.asp"--> <!--#include file="includes/sql.asp"-->
<% <%
' Lookup printer by IP address or FQDN and redirect to displayprinter.asp ' Lookup printer by IP address or FQDN and redirect to displayprinter.asp
' Used by Zabbix to link directly to printer details ' 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") & "") ip = Trim(Request.QueryString("ip") & "")
fqdn = Trim(Request.QueryString("fqdn") & "") fqdn = Trim(Request.QueryString("fqdn") & "")