From 03229527e1cd42fa2dc2dce39660b481041a7903 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Sun, 9 Apr 2017 19:58:40 +0100 Subject: Make the password hash check case-insensitive --- dns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dns.php') diff --git a/dns.php b/dns.php index ffb7654..fa4a1fc 100644 --- a/dns.php +++ b/dns.php @@ -32,7 +32,7 @@ function getzone($domain, $password) { $zonelines = explode("\n", $string); $zonehash = explode(" ", $zonelines[0]); - if ($zonehash[sizeof($zonehash) - 1] == $password) { + if (strtolower($zonehash[sizeof($zonehash) - 1]) == strtolower($password)) { return $string; } else { return; -- cgit v1.2.3