diff options
| -rw-r--r-- | dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |
