summaryrefslogtreecommitdiff
path: root/dns.php
diff options
context:
space:
mode:
Diffstat (limited to 'dns.php')
-rw-r--r--dns.php2
1 files changed, 1 insertions, 1 deletions
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++;