From 3ff65d3ee9458b9ae961547a649e94c407e23333 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 28 Dec 2025 00:21:29 +0000 Subject: Ensure that the secret ID is definitely a comment at the end of a non-commented record. --- dns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns.php b/dns.php index 1c074c8..95ace68 100644 --- a/dns.php +++ b/dns.php @@ -153,7 +153,7 @@ if (isset($_GET['mode']) && isset($_GET['zone']) && isset($_GET['hash'])) { // Find lines that ended with the hash provided (if any) $i = 0; foreach ($zonelines as $line) { - if (preg_match("/" . $_GET['hash'] . "$/", $line)) { + if (preg_match("/^[^;].*;.*" . $_GET['hash'] . "$/", $line)) { array_push($matches, array($i, $line)); } $i++; -- cgit v1.2.3