From 93b1aeedaaaa4dd9430c3b4eab86c8178b97bd34 Mon Sep 17 00:00:00 2001 From: cynic Date: Fri, 11 Oct 2024 17:29:47 -0400 Subject: [PATCH] bugfix trim --- lib/asn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asn.php b/lib/asn.php index 5bfa492..b4a80ea 100644 --- a/lib/asn.php +++ b/lib/asn.php @@ -26,7 +26,7 @@ function check_asn($ip, $asns, $whois_server, $port){ $response = explode(" | ", $response[1]); foreach ($asns as $asn){ - if ($asn == $response[0]){ + if ($asn == trim($response[0])){ return true; } }