summaryrefslogtreecommitdiff
path: root/dns.php
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2017-04-09 19:58:40 +0100
committerLuke Bratch <luke@bratch.co.uk>2017-04-09 19:58:40 +0100
commit03229527e1cd42fa2dc2dce39660b481041a7903 (patch)
tree16430aa93082582bf7acc53612e7689bab0f4b8b /dns.php
parent64e8c88ddab2a8762114028abfa69fc4ae431bda (diff)
Make the password hash check case-insensitive
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 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;